[R] how to predict with logistic model in package logistf ?
d.firth at warwick.ac.uk
Thu Oct 27 19:22:22 CEST 2005
On 27 Oct 2005, at 09:18, jinlong li wrote:
> dear community,
> I am a beginer in R , and can't predict with logistic model in
Not exactly the answer to your question, but an alternative to the
logistf package, which purports to do similar things, is brlr (which
does provide a predict method). Does this work for you?
fit <- brlr(case ~ age + oc + vic + vicl + vis + dia, data = sex2)
predict(fit, newdata = sex2)
> could anyone help me ? thanks !
> the following is my command and result :
>> fit<-logistf(case ~ age+oc+vic+vicl+vis+dia, data=sex2)
> Error in predict(fit, newdata = sex2) : no applicable method for
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide!
More information about the R-help