Fit a univariate mixed model
Fits a mixed model at location l. Part of Step 1 of the FUI approach.
unimm(l, data, model_formula, family, residuals, caic, REs, analytic)
l
: location to fit the modeldata
: data frame containing all the variables in formula. Uses value fed to fui
.model_formula
: Character version of a two-sided formula object in lme4 formula syntax, produced within fui
.family
: GLM family of the response. Uses value fed to fui
.residuals
: Logical, indicating whether to save residuals from unsmoothed LME. Uses value fed to fui
.caic
: Logical, indicating whether to calculate cAIC. Defaults to FALSE
.REs
: Logical, indicating whether to return random effect estimates. Uses value fed to fui
.analytic
: Logical, indicating whether to use the analytic inference approach or bootstrap. Uses value fed to fui
.a list containing point estimates, variance estimates, etc.