Hello,
I fit a model based on 150 some observations. I am having trouble with the syntax of the predict function. I've spent a few hours with this silly thing and I have a headache.
Anyway,
I have 4 explanatory variables call them x1,x2,x3,x4
I have 10 different combinations of the variables for which I want to predict the response.
So, a 10 x 4 data_frame
I would ideally like to have 10 predicted values for the response
but when i try to do this....
predict(model, data_frame, type=c("response"))
I get a warning message about the row numbers not matching up. And R spits 150 values at me.
I fit a model based on 150 some observations. I am having trouble with the syntax of the predict function. I've spent a few hours with this silly thing and I have a headache.
Anyway,
I have 4 explanatory variables call them x1,x2,x3,x4
I have 10 different combinations of the variables for which I want to predict the response.
So, a 10 x 4 data_frame
I would ideally like to have 10 predicted values for the response
but when i try to do this....
predict(model, data_frame, type=c("response"))
I get a warning message about the row numbers not matching up. And R spits 150 values at me.