[R] how to predict with logistic model in package logistf ?

jinlong li lee_poet at hotmail.com
Thu Oct 27 10:18:02 CEST 2005


dear community,
     I am a beginer in R , and can't predict with logistic model  in package 
logistf,
could anyone help me ? thanks !

the following is my command and result :

>library(logistf)
>data(sex2)
>fit<-logistf(case ~ age+oc+vic+vicl+vis+dia, data=sex2)
>predict(fit,newdata=sex2)
   Error in predict(fit, newdata = sex2) : no applicable method for 
"predict"




More information about the R-help mailing list