Learn R Programming

MAST (version 0.931)

lrTest: Run a likelihood-ratio test

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

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