lr.glover: Likelihood Ratio Test

View source: R/lr.glover.R

lr.gloverR Documentation

Likelihood Ratio Test

Description

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

Usage

  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

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

Rmisc documentation built on May 2, 2022, 5:05 p.m.