IL PROTECTED]
On Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, 16 October 2007 5:30 AM
To: [EMAIL PROTECTED]
Subject: [R] partitioning data
I am trying to train on part of my data and test on another part:
> glm.model = glm(as.factor(h_finished) ~ . , family=binomial,
data=form[1:15,])
>
I am trying to train on part of my data and test on another part:
> glm.model = glm(as.factor(h_finished) ~ . , family=binomial,
data=form[1:15,])
> pred = predict(glm.model, data=form[150001:20,-1], type="response")
> t = table(pred, form[150001:20,1])
Error in table(pred, form[15000
2 matches
Mail list logo