View source: R/print_hierarchical_lm.R
print.hierarchical_lm | R Documentation |
hierarchial_lm
Class ObjectPrint the content of a 'hierarchical_lm'-class object.
## S3 method for class 'hierarchical_lm'
print(
x,
digits = 4,
signif.stars = getOption("show.signif.stars"),
eps.Pvalue = 0.001,
...
)
x |
A |
digits |
The minimum number of
significant digits to be used for
most numbers. To be used by the print
method of |
signif.stars |
Logical. To be
used by the print method of
|
eps.Pvalue |
To be passed to
|
... |
Optional arguments. To
be passed to the print method of
|
The printout is very similar
to that of the print method of
an anova
object. It simply
overrides the default values for
some arguments, notably esp.Pvalue
to prevent small p-values to be
presented in scientific notation.
x
is returned invisibly.
Called for its side effect.
Shu Fai Cheung https://orcid.org/0000-0002-9871-9448
hierarchical_lm()
dat <- data_test1
lm1 <- lm(y ~ x1 + x2, dat)
lm2 <- lm(y ~ x1 + x2 + x3 + x4, dat)
lm3 <- lm(y ~ x1 + cat1 + cat2 + x2 + x3 + x4, dat)
lm4 <- lm(y ~ x1 + x2*x3 + x4, dat)
hierarchical_lm(lm1, lm3, lm2)
hierarchical_lm(lm1, lm2, lm4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.