I'm a bit confused by the structure here. It seems like you have a detection model that's something like
~ weather + chemistry
(setting aside that technically you can have different detection models for each true state in the multi-state model which I think isn't relevant here).
Then you have 3 replicate surveys per site. For the first two surveys, the value of chemistry is always NA. For the last one, weather is always NA. Is that right?
The way the model works in unmarked is that every detection probability for every survey has to come from the same regression model, e.g. in this case
logit(p[i]) = intercept + beta_weather * weather[i] + beta_chemistry * chemistry[i]
If any covariate value is NA for a given survey, that survey is dropped from the analysis. Since all surveys will have at least one NA (for either weather or chemistry), then all surveys will be dropped. I am surprised you were able to fit this model at all because it seems like every single data point will be dropped. Maybe I'm misunderstanding?
Is the structrure you are looking for more like
logit(p[i|surveyType[i] = visual]) = intercept + beta_weather * weather[i]
and
logit(p[i|surveyType[i] = eDNA]) = intercept + beta_chemistry * chemistry[i]
?
I think possibly some kind of interaction model could do this in unmarked, something like
logit(p[i]) = intercept + beta_eDNA[i] * is_eDNA[i] + beta_weather * weather[i] * is_visual[i] + beta_chemistry * chemistry[i] * is_eDNA[i]
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/acb8b991-90fa-42ed-bdd4-4dcc3d792ae6n%40googlegroups.com.