I am modeling tree mortality using a binomial model in R. Mortality data are collected by two visits to an individual site. On the second visit observers record all trees that died over the measurement interval. The measurement interval is anywhere from 5-10 years. Therefore, the longer the measurement interval, the higher the likelihood of observing mortality. Finally, the data are collected from across the Eastern US, and so spatial auto-correlation of residuals must be dealt with.
I am approaching this using the gamm function within the mgcv package in R. I include an uninformative random effect (all observations have the same level of the random effect). The model looks like this:
mod <- gamm(mortality ~ x1 + x2,
family=binomial,
random = random = list(rand.eff = ~1),
correlation = corExp(form = ~longitude + latitude, nugget=T),
data=data)
However, this does not account for the effect of the duration of the measurement interval. How can I incorporate this information into this model?
pr, as:bern(pr), wherepris calculated as the inverse logit of the linear combination of predictions. I want the bernoulli distribution to instead be calculated asbern(1 - (1 - pr)^ t)), wheretis the measurement interval. This way the predictors predict things on a standardized time interval, and the model accounts for the varying measurement interval. – colin Sep 02 '16 at 01:19geoRglmfor spatially correlated generalized linear models, you could look into that – kjetil b halvorsen Aug 27 '17 at 12:42