[R] problems perfroming the vuong test

mirko sanpietrucci mirko.sanpietrucci at email.it
Sun Oct 15 10:24:20 CEST 2006


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.

mirko



More information about the R-help mailing list