lr.glover: Likelihood Ratio Test

Description Usage Arguments Value Details References Examples

Description

Computes a likelihood ratio statistic which reflects the relative likelihood of the data given two competing models.

Usage

1
lr.glover(object, ..., name = NULL)

Arguments

object

an object. See below for details.

...

further object specifications passed to methods. See below for details.

name

a function for extracting a suitable name/description from a fitted model object. By default the name is queried by calling formula.

Value

An object of class "anova" which contains the log-likelihood, degrees of freedom, the difference in degrees of freedom, likelihood ratio, and AIC/BIC corrected likelihood ratios.

Details

lr.glover performs comparisons of models via likelihood ratio tests. The default method consecutively compares the fitted model object object with the models passed in .... Subsequently, a likelihood ratio test for each two consecutive models is carried out.

References

Glover, S. & Dixon, P. (2004). Likelihood ratios: A simple and flexible statistic for empirical psychologists. Psychonomic Bulletin & Review, 11(5), 791-806.

Examples

1
2
3
4
m1 <- lm(mpg~.,mtcars)
m2 <- step(m1,~.,trace=0)
m3 <- step(m1,~.+.^2,trace=0)
lr.glover(m1,m2,m3)

RyanHope/Rmisc documentation built on May 9, 2019, 10:38 a.m.