resid_model_matrix: Create a residual effect covariance matrix

View source: R/deprecated_functions.R

resid_model_matrixR Documentation

Create a residual effect covariance matrix

Description

Creates an covariance matrix for the random effects of a mixed-model

Usage

resid_model_matrix(resid, data, sparse = TRUE)

Arguments

resid

A formula specifying the the structure of the residual effects in the linear mixed-model. Must be preceded by a ~ and can include the modifier verbs sommer, sommer, and base to specify different structures. The formulae can take the same form as those in gws, except the term must be "units".

data

A data.frame that includes the response and predictors. If not supplied, the function will look in the current running environment.

Value

A nested list of model matrices.


neyhartj/gws documentation built on Feb. 5, 2024, 12:42 a.m.