rbchan / unmarked

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

Handle fixed parameters in pcountopen simulate and fitted #133

Closed kenkellner closed 5 years ago

kenkellner commented 5 years ago

A more complete fix for #110 that correctly simulates data and generates fitted values when fix='omega' (omega=1) or 'gamma' (gamma=0) in pcountopen.

To implement this I had to add a new attribute to pcountopen fit objects ("fix") to keep track of which parameter was fixed - guessing from the coefficient names could be problematic. If the attribute is missing (i.e., a model fit from an older version of unmarked is imported) the fix value defaults to "none".