Re: [R] partitioning data [SEC=UNCLASSIFIED]

2007-10-15 Thread Crombie, Joe
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,]) >

[R] partitioning data

2007-10-15 Thread stephenc
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