Error in eval predvars, data, env) object not found

Hi guys I am having trouble with getting my data to work. I am trying to run my site occupancy but
when i type and run this :

> proportion_wetland_prediction <- predict(m12, 
+                                type = 'state', 
+                                newdata = df2)

i end up with this:

Error in eval(predvars, data, env) : 
  object 'proportion_wetland' not found

I think its telling you that the model was fit on data containing proportion_wetland variable and this variable is not present on the newdata df2 dataset

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

I dont have your data, i don't know your fitting code, i dont see your results, so how can I comment ?

If you want to share your work you can read about how to do so

FAQ: How to do a minimal reproducible example ( reprex ) for beginners

Thank you very much for helping me. just realised that I had accidentally typed in another word after propotion_wetland which then didn't allow me to find it. However I have now performed the next bit being this:

proportion_wetland_predict_combined <- cbind(df2, proportion_wetland_prediction)
proportion_wetland_predict_combined

but my lower and higher values seem wrong. eg. my lower/upper interval values should be as such: 2.791127e-06.

thank you very much for getting in touch much appreciated