I'm trying to fit a glm in R My code is the following:
mod1 <- glm(formula = DV ~ IV1*IV2, data = df).
where IV1: between-subjects independent variable; IV2: within-subject independent variable
The DV distribution (not the residual!) is approximately an ex-gaussian.
Which "family" argument should I use? Any tips are welcome, thanks!
fit <- fitDist(df$DV, k = 2, type = "realplus", trace = FALSE, try.gamlss = TRUE) This is the output that I get from this: Family: c("exGAUS", "ex-Gaussian") Fitting method: "nlminb"
– Gianluca Dec 28 '21 at 16:48