Dear Xinzhu,
the formula language in unmarked is identical to the formula language in many other model-fitting packages in R. Thus, in your case, writing '~ forest' estimates the logit-linear effect of forest cover, averaging over, or ignoring, any differences in the modelled
parameter over years. When you write '~year', you ignore any forest effects and just estimate a different constant for every year. '~ year + forest' gives a different intercept in every year, plus an average (over years) effect of forest cover (that's the
additive model), while'~ year * forest' (which is the same as '~ year + forest + year:forest') fits a separate regression of the parameter on forest cover in every single year.
Without knowing the goals of your study, it is (near-)impossible to know which model is better. Which models to consider will have to depend in a large part on your biological hypotheses and on your goals.
However, assuming for now that you're mostly interested in the effect of forest cover, you might choose to just fit the model '~forest'. However, if there is substantial variation in the parameter among years, ignoring this variability will lead to an over-confident
assessment of the effect of forest cover. So, even if you're not particularly interested in any effects of year, it might be prudent to add a year effect, though possibly in an additive way rather than as an interaction. A common approach then would be to
treat the year effects as random, something which can now be done in unmarked owing to the power of the underlying TMB engine.
Best regards --- Marc
Hello
I'm exploring dynamic occupancy using unmarked package. I just read the help document written by you and I have some questions regarding "year". Correct me if I'm wrong. I think the year effect allow you to look at detection, colonization, and extinction per
year. But what I'm having trouble to understand is how to combine the year effect with other covariates. For example, how forest impact colonization each year. I saw people write it as year + forest in the model, like an additive effect. However, I'm wondering
why this is not an interactive effect. I mean, write it like year + forest + year:forest. More specifically, how am I supposed to interpret the results of year + covariate? I tried it with my own data. It seems to generate the estimate for the covariate itself
as well as the estimate for the first year all the way to the last year. Also, it seems that we can either consider the year effect or not. I mean, I want to test how forest impact bobcat colonization. I can write the colonization part as Forest, or Forest
+ year. Is one of them better than the other?
--
*** 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 on the web visit
https://groups.google.com/d/msgid/unmarked/1c79af4d-9978-4298-9a28-c05106d75767n%40googlegroups.com.