kANOVA {NCStats} | R Documentation |
Specific utilities for pretty printing various items in a knitr document.
kANOVA(x) kGLHT(x, type = c("hypothesis", "confidence")) kREG(x, digits = max(3, getOption("digits") - 3)) kHtest(x, digits = 4, show.alt = FALSE, ...)
x |
An object saved from |
type |
A string that indicates the type of glht result to extract. |
digits |
Number of decimal places to round the values to. |
show.alt |
A logical that indicates whether the line stating what the alternative hypothesis is should be printed ( |
... |
Additional arguments for the original |
kANOVA
is used to print ‘pretty’ ANOVA tables (i.e., some output removed (see below)).
kGLHT
is used to print ‘pretty’ multiple comparison tables (i.e., some output removed (see below)).
kREG
is used to print ‘pretty’ summary regression results (i.e., some output removed (see below)).
kHtest
is used to print ‘pretty’ hypothesis test (e.g., from t.test
or chisq.test
) tables (i.e., some output removed (see below)).
kANOVA
returns the results of anova
but without the heading attribute.
kGLHT
returns a matrix of just the hypothesis test or confidence interval results from a glht
object (i.e., all messages that are usually printed are stripped away).
kREG
returns the results of summary
but without the call and the information about the residuals.
kHtest
returns the same as stats:::print.htest
except that the name of the test, the data used, and, optionally, the descriptor of the alternative hypothesis are not printed.
Derek H. Ogle, dogle@northland.edu
See glht
in multcomp for related functionality.
# None yet