lrTest: Run a likelihood-ratio test

lrTestR Documentation

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.

...

optional arguments, passed to fitting functions

Value

array giving test statistics

See Also

fit

waldTest

Hypothesis

CoefficientHypothesis

Examples

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

RGLab/MAST documentation built on Sept. 30, 2023, 1:08 p.m.