rbchan / unmarked

R package for hierarchical models in ecological research
https://rbchan.github.io/unmarked/
37 stars 25 forks source link

More informative error messages when specifying an incorrect type with predict #221

Closed kenkellner closed 2 years ago

kenkellner commented 2 years ago

For some models (like colext) if you specify type='state' instead of type='psi' you get a confusing error. Should add a function to extract the submodel types from any fitted model and check the input against them.

kenkellner commented 2 years ago

Fixed by #230