Hi,
I split a data set into two partitions (80 and 42), use the first as the training set in glm and the second as testing set in glm predict. But when I call glm.predict, I get the warning message: 

Warning message:
'newdata' had 42 rows but variable(s) found have 80 rows 
---------------------
 s = sample(1:122)
glm.my.data=glm(my.data.class[s[1:80]]~t(my.data)[s[1:80],1:60],family="binomial")
pred.my.data = predict(glm.gse13355,as.data.frame(t(my.data)[s[81:122],1:60]),type="response")
Warning message:
'newdata' had 42 rows but variable(s) found have 80 rows 

length(pred.my.data)
[1] 80

Thanks

Carol
	[[alternative HTML version deleted]]

