print.compmod: Print method for objects of class "compmod"

View source: R/plot_summary_print.R

print.compmodR Documentation

Print method for objects of class "compmod"

Description

print method for class "compmod".

Usage

## S3 method for class 'compmod'
print(x, digits = max(3L, getOption("digits") - 3L), ...)

Arguments

x

an object of class "compmod", a result of a call to compare_models.

digits

An integer. The argument digits to signif.

...

Additional optional arguments. At present no optional arguments are used.

Details

Prints the name of the model, the null (H0) and alternative hypotheses (HA), the test statistic, degrees of freedom and the p-value. If the test is based on the approximation detailed by equations (18)-(20) of Chandler and Bate (2007), rather than equation (17), then this stated.

Value

The argument x, invisibly, as for all print methods.

Examples

See the examples in compare_models.

See Also

adjust_loglik to adjust a user-supplied loglikelihood function.

compare_models to compare nested models using an (adjusted) likelihood ratio test.


chandwich documentation built on Aug. 26, 2023, 1:07 a.m.