Hi Chris,
ubms is probably a little too aggressive in erroring for missing yearly-site covariates. I *think* that you should be ok to just fill in random values for the covariates in the missing years, and as long as the corresponding detection/nondetection data are NAs, they'll be ignored.
However I would be cautious in using ubms when you have entirely missing periods. I'm not sure that the way ubms handles this is exactly correct in all cases (see
https://github.com/ecoverseR/ubms/issues/85). I haven't had time to explore this in depth yet.
If you don't absolutely need a Bayesian analysis, I would consider using unmarked instead, which should handle the missing values better.
Ken
> --
> *** Three hierarchical modeling email lists ***
> (1) unmarked (this list): for questions specific to the R package unmarked
> (2) SCR: for design and Bayesian or non-bayesian analysis of spatial capture-recapture
> (3) HMecology: for everything else, especially material covered in the books by Royle & Dorazio (2008), Kéry & Schaub (2012), Kéry & Royle (2016, 2021) and Schaub & Kéry (2022)
> ---
> You received this message because you are subscribed to the Google Groups "unmarked" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
unmarked+u...@googlegroups.com.
> To view this discussion visit
https://groups.google.com/d/msgid/unmarked/a997a04b-302e-4cb2-be31-7c1979daf778n%40googlegroups.com.