unimm {fastFMM}R Documentation

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)

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

Value

a list containing point estimates, variance estimates, etc.


[Package fastFMM version 0.4.0 Index]