chandwich (version 1.1.6)

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

Description

print method for class "compmod".

Usage

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

Value

The argument x, invisibly, as for all

print methods.

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.

Examples

See the examples in compare_models.

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.

See Also

adjust_loglik to adjust a user-supplied loglikelihood function.

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