-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathlrTest.Rd
35 lines (30 loc) · 1.02 KB
/
lrTest.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllGenerics.R
\name{lrTest}
\alias{lrTest}
\title{Run a likelihood-ratio test}
\usage{
lrTest(object, hypothesis, ...)
}
\arguments{
\item{object}{LMlike or subclass}
\item{hypothesis}{the hypothesis to be tested. See details.}
\item{...}{optional arguments, passed to fitting functions}
}
\value{
array giving test statistics
}
\description{
Compares the change in likelihood between the current model and one subject to contrasts tested in \code{hypothesis}.
\code{hypothesis} can be one of a \code{character} giving complete factors or terms to be dropped from the model, \code{CoefficientHypothesis} giving names of coefficients to be dropped, \code{Hypothesis} giving contrasts using the symbolically, or a contrast \code{matrix}, with one row for each coefficient in the full model, and one column for each contrast being tested.
}
\examples{
#see ZlmFit-class for examples
example('ZlmFit-class')
}
\seealso{
fit
waldTest
Hypothesis
CoefficientHypothesis
}