[R] Loading a rda file for predicton
TJUN KIAT TEO
teotjunk at hotmail.com
Mon Oct 13 15:37:38 CEST 2014
I tried this
--------------------------------------------------------------------------------------------
fit<-glm(Pred~Pressure+MissingStep, data = Test, family="binomial")
save(fit,file="pred.rda")
pred<-load("pred.rda")
predict(pred,Testsamp,type="response")
------------------------------------------------------------------------------------
But got this error message
no applicable method for 'predict' applied to an object of class "character"
What did I do wrong?
Tjun Kiat
[[alternative HTML version deleted]]
More information about the R-help
mailing list