Learn R Programming

lmhelprs (version 0.4.0)

print.hierarchical_lm: Print a hierarchial_lm Class Object

Description

Print the content of a 'hierarchical_lm`-class object.

Usage

# S3 method for hierarchical_lm
print(
  x,
  digits = 4,
  signif.stars = getOption("show.signif.stars"),
  eps.Pvalue = 0.001,
  ...
)

Value

x is returned invisibly. Called for its side effect.

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.

See Also

hierarchical_lm()

Examples

Run this code

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)

Run the code above in your browser using DataLab