lmmHeterosced: Linear mixed model with heteroscedasticity

View source: R/lmmHeterosced.R

lmmHeteroscedR Documentation

Linear mixed model with heteroscedasticity

Description

lmmHeterosced Linear mixed model with the log error variance as linear function of data.

Usage

lmmHeterosced(formula, data, heterosced_formula = ~1, REML = TRUE)

Arguments

formula

model formula lmer style

data

a data frame with the data

heterosced_formula

an optional heteroscedasticity formula

REML

if restricted maximum likelihood should be used

Value

lmmHeterosced returns a list with elements: Fixef (fixed effects estimates), Heterosced (parameters of the heteroscedasticity function, a linear function of the log residual variance), Ranef_log_Var (random effect variances on log), Ranef (random effect), Residuals, data (the original data), error_var_matrix (variance matrix of the estimation error) fit (nlminb output), obj (MakeADFun output), optTime (Optimization time)

Author(s)

Geir H. Bolstad

Examples

# See the vignette 'lmmHeterosced'.

GHBolstad/lmmHeterosced documentation built on Oct. 21, 2023, 12:22 p.m.