Skip to content
Prev 249969 / 398498 Next

Use glm coefficients for other datasets

Thank you for your kindness, but ive done what you've said and the problem
remains.  What im doing is pretty straightforward,
response pred1 pred2
1       1     0    1
2       0     0    0
3       1     0    0
4       1     1    1
5       1     0    1
6       0     1    1
7       1     1    0
8       1     0    1
9       0     1    1
10      0     0    1
response pred1 pred2
8       1     0    1
2       0     0    0
9       0     1    1
10      0     0    1
6       0     1    1
family=binomial(link="logit"))
###the model ran correctly

But when I ask for the predictions,
Mensajes de aviso perdidos
'newdata' had 5 rows but variable(s) found have 10 rows
[1] 10

And those 10 values are the fitted values corresponding for the model over
its origin dataset.

I really can't get what's the problem...