print method for class "compmod".

# S3 method for 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.

Value

The argument x, invisibly, as for all

print methods.

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.

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.