[R] Likelihood ration test on glm

Kevin E. Thorpe kevin.thorpe at utoronto.ca
Fri Sep 21 16:28:54 CEST 2007


Chris Elsaesser wrote:
> I would like to try a likelihood ratio test in place of waldtest.
> Ideally I'd like to provide two glm models, the second a submodel of the
> first, in the style of lrt
> (http://www.pik-potsdam.de/~hrust/tools/farismahelp/lrt.html). [lrt
> takes farimsa objects]
> 
> Does anyone know of such a likelihood ratio test?
> 
> 

I think anova(model1,model2,test="Chi") will do what you want.

-- 
Kevin E. Thorpe
Biostatistician/Trialist, Knowledge Translation Program
Assistant Professor, Department of Public Health Sciences
Faculty of Medicine, University of Toronto
email: kevin.thorpe at utoronto.ca  Tel: 416.864.5776  Fax: 416.864.6057



More information about the R-help mailing list