I have a continuous response with three categorical variables, no random effects. I have fit a gamlss object using the zero-adjusted gamma distribution. Link to data here because it's large. I've can't get the data into a more standard distribution and I'd like to avoid using a hurdle-type analysis approach if possible for easier interpretation.
data_1 <- read.csv('data_1.csv', sep = ',')
library(gamlss)
mZAGA <- gamlss(cent ~ treat * cat * season, family = ZAGA(), data = data_1)
I want to compare the significance of the main effecs and interactions within the model, which is not a feature directly available in gamlss
it seems. This paper describes converting a gamlss
object into an nlme::lme
object (https://arxiv.org/abs/1810.03085, page 17) which seems like a good approach, since lme
models are more widely accepted by stats packages.
Once the mixed GAMLSS is fitted and stored in an R object, the function
getSmo()
can be used to transform it to anlme
object, so that all methods used with mixed models fitted vialme()
become available, such as analysis of variance via theanova()
function.
However the getSmo
documentation isn't helping me with this conversion and trial-and-erroring is getting me nowhere. How can I use my coefficients (mu's, sigma and nu) to build an lme object? Is this something I can even do while retaining the zero-adjusted gamma distribution from gamlss
?