[R] problems perfroming the vuong test

From: mirko sanpietrucci <mirko.sanpietrucci_at_email.it>
Date: Sun 15 Oct 2006 - 08:24:20 GMT

Dear All,
I am using the function vuong of the package pscl to compare 2 non nested glm models with a numeric response.
I did the following

m1<-glm(y ~x ,data=xxx)
m2<-glm(y ~z , data=xxx)

When calling the vuong function I get the following message:

> vuong(m1,m2)
Error in predprob.glm(m1) : your object of class glm is unsupported by predprob.glmyour object of class lm is unsupported by predprob.glm

My guess is that this function does not support numeric response!!!!! How can I solve the problem?

Any help will be really appreciated.


R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Sun Oct 15 18:37:24 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 15 Oct 2006 - 11:30:09 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.