Learn R Programming

fastFMM (version 0.3.0)

unimm: Fit a univariate mixed model

Description

Fits a mixed model at location l. Part of Step 1 of the FUI approach.

Usage

unimm(l, data, model_formula, family, residuals, caic, REs, analytic)

Value

a list containing point estimates, variance estimates, etc.

Arguments

l

location to fit the model

data

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`.