Message-ID: <1302124625814-3431855.post@n4.nabble.com>
Date: 2011-04-06T21:17:05Z
From: dirknbr
Subject: glm predict on new data
I am aware this has been asked before but I could not find a resolution.
I am doing a logit
lg <- glm(y[1:200] ~ x[1:200,1],family=binomial)
Then I want to predict a new set
pred <- predict(lg,x[201:250,1],type="response")
But I get varying error messages or warnings about the different number of
rows. I have tried data/newdata and also to wrap in data.frame() but cannot
get to work.
Help would be appreciated.
Dirk.
--
View this message in context: http://r.789695.n4.nabble.com/glm-predict-on-new-data-tp3431855p3431855.html
Sent from the R help mailing list archive at Nabble.com.