R/stats_functions.R
fit_mdl_robust.Rd
This function fits a (G)LME. If the fit does not converge, it will try different optimisers, and if still not converging will remove the integration over random effects.
fit_mdl_robust(mdl_formula, mdl_data, mdl_family = "Gaussian")
Complete model formula
Data frame
Error family (default: Gaussian)
List with fitted fixed- and random-effects models, AIC difference (negative in favour of random-effects), converging optimiser, estimated marginal means