search for: h_finished

Displaying 2 results from an estimated 2 matches for "h_finished".

Did you mean: __finished
2007 Oct 15
0
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:150000,]) > pred = predict(glm.model, data=form[150001:200000,-1], type="response") > t = table(pred, form[150001:200000,1]) Error in table(pred, form[150001:2e+05, 1]) : all arguments must have the same length but try as I might my pred...
2007 Oct 16
0
partitioning data [SEC=UNCLASSIFIED]
...s at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of stephenc at ics.mq.edu.au Sent: Tuesday, 16 October 2007 5:30 AM To: r-help at stat.math.ethz.ch 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:150000,]) > pred = predict(glm.model, data=form[150001:200000,-1], > type="response") t = table(pred, form[150001:200000,1]) Error in table(pred, form[150001:2e+05, 1]) : all arguments must have the same length but try as I might my pred...