Closed myjulo closed 3 years ago
Update: I've also been posting on stackoverflow about this. Russ Lenth there suggested to use the emmeans::qdrg
function. See the possible solution here.
Thanks for sharing this. In many of the required methods I have allowed for the option to extract separately the components for either the main model or the logistic regression for the extra zeros. However, I don't how exactly emmeans can use this. I will look it up.
I'm running a hurdle lognormal model and I'm interested in the main effects of my categorical variables and the pairwise comparisons. Example of my code:
The latter two only give outputs for the "main" model, though I would also like to have the output for the "zero_part" model. Is there a way to specify this in the emmeans functions? Or is there a way to create a model object for the "zero_part" model only, so I can use that as a model object in the emmeans functions?
For easiness, a code using the dataset in the Zero-Inflated and Two-Part Mixed Effects Models vignette
First, run the first code block under the semi-continuous data part of the vignette, which creates the dataset
DF
.