lrTest: Run a likelihood-ratio test

Description Usage Arguments Value See Also Examples

View source: R/LmWrapper.R

Description

Compares the change in likelihood between the current model and one subject to contrasts tested in hypothesis. hypothesis can be one of a character giving complete factors or terms to be dropped from the model, CoefficientHypothesis giving names of coefficients to be dropped, Hypothesis giving contrasts using the symbolically, or a contrast matrix, with one row for each coefficient in the full model, and one column for each contrast being tested.

Usage

1
lrTest(object, hypothesis)

Arguments

object

LMlike or subclass

hypothesis

the hypothesis to be tested. See details.

Value

array giving test statistics

See Also

fit

waldTest

Hypothesis

CoefficientHypothesis

Examples

1
2
#see ZlmFit-class for examples
example('ZlmFit-class')

MAST documentation built on May 31, 2017, 2:28 p.m.