LRTest carry out an asymptotic likelihood ratio test for two models.

LRTest(mod0, mod1)

Arguments

mod0

An existing fit from a model function such as lm, glm and many others.

mod1

Object of the same class as mod0 with extra terms included.

Value

Data frame with the results of likelihood ratio test of the supplied models.

Column term holds new variables appearing in mod1,

df difference in degrees of freedom between models, logLik

difference in log likelihoods, statistic

Chisq statistic and

p.value corresponding p-value.

Details

mod0 have to be a reduced version of mod1. See examples.