Re: [R] Loading a rda file for predicton

2014-10-13 Thread Peter Langfelder
see help(load) and pay particular attention to what the function returns: the names of the loaded objects, not the object(s) themselves. You have to use predict(fit,Testsamp,type="response") since the load() created a variable 'fit' (same name as the one saved). HTH Peter On Mon, Oct 13, 20

[R] Loading a rda file for predicton

2014-10-13 Thread TJUN KIAT TEO
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") ---