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 hierarchical_lm-class object, usually the output of hierarchical_lm().

digits

The minimum number of significant digits to be used for most numbers. To be used by the print method of anova-class objects.

signif.stars

Logical. To be used by the print method of anova-class objects.

eps.Pvalue

To be passed to format.pval(). It controls how small p-values are displayed. Default is .001. That is, p-values less than .001 will be displayed as ⁠<.001⁠.

...

Optional arguments. To be passed to the print method of anova-class objects.

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

hierarchical_lm()

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)


[Package lmhelprs version 0.3.0 Index]