[R-sig-ME] mixed lognormal hurdle model with multiple grouping factors

Mollie Brooks mo|||eebrook@ @end|ng |rom gm@||@com
Wed Dec 18 15:05:35 CET 2019

Hi Guillaume,

I don’t think the hurdle lognormal can be fit in a single function call to glmmTMB since the model for the non-zero response requires log-transforming the response. Other types of hurdle models could be fit in glmmTMB using the zero-inflation model.

I don’t think you gain much information in hurdle models by modeling the two parts (zeros and non-zeros) in one function call. The only potential benefit to fitting a hurdle in a single function call is that you get likelihood and AIC for the entire data set, but I don’t know if those are produced by brms.

You could just fit a binomial model for the zero-non-zero process (i.e. monoculture) like
mod_binom=lmer((diversity>0)~block+syst+(1|plot)+(1|year)+(1|plot:year), data=density, family=binomial)

and then fit a model to the log of the positive data
mod_gaus=lmer(log(diversity)~block+syst+(1|plot)+(1|year)+(1|plot:year), data=subset(density, diversity>0))

Or, given that the outcome is non-negative and continuous, it might make sense to try a Tweedie distribution, but I’m not sure I’ve seen this applied to diversity indices in the literature. Has anyone else seen this done?
mod_twe = glmmTMB(diversity~block+syst+(1|plot)+(1|year)+(1|plot:year), data=density, family=tweedie)


> On 18Dec 2019, at 14:45, Cesko Voeten <c.c.voeten using hum.leidenuniv.nl> wrote:
> Hi Guillaume,
> If you're not afraid to go Bayesian, brms can do it. Alternatively, you may be able to use glmmTMB and treat the hurdle part as zero inflation, but this is conceptually not the same thing as a hurdle model so you would need to judge whether that would make sense at all for your application.
> HTH,
> Cesko
> Op 18-12-2019 om 13:48 schreef Guillaume Adeux:
>> Hi everyone,
>> I am looking for a package which can handle "hurdle.lognormal" distribution
>> family and multiple grouping factors.
>> GLMMadaptive seemed as the way to go but unfortunately, to the best of my
>> knowledge, it does not handle multiple grouping factors (random effects).
>> You may ask why? I am analyzing plant diversity and one of the treatments
>> led to plots which were dominated by one species. Hence, certain diversity
>> indices are estimated as zero in these plots, and produces a mass at zero.
>> All other values are positive and continuous.
>> Anyone have an idea of a package/function which can handle this? Or any
>> alternative approach?
>> In lmer syntax, the model is the following:
>> mod=lmer(diversity~block+syst+(1|plot)+(1|year)+(1|plot:year),data=density,REML=F)
>> Thank you for your time and help.
>> Sincerely,
>> Guillaume ADEUX
>> 	[[alternative HTML version deleted]]
>> _______________________________________________
>> R-sig-mixed-models using r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models
> _______________________________________________
> R-sig-mixed-models using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models

More information about the R-sig-mixed-models mailing list