print.hierarchical_lm {lmhelprs} | R Documentation |
Print a hierarchial_lm
Class Object
Description
Print the content of a 'hierarchical_lm'-class object.
Usage
## S3 method for class 'hierarchical_lm'
print(
x,
digits = 4,
signif.stars = getOption("show.signif.stars"),
eps.Pvalue = 0.001,
...
)
Arguments
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
|
Details
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.
Value
x
is returned invisibly.
Called for its side effect.
Author(s)
Shu Fai Cheung https://orcid.org/0000-0002-9871-9448
See Also
Examples
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)