fixef_model_matrix: Create a fixed effect incidence matrix

View source: R/deprecated_functions.R

fixef_model_matrixR Documentation

Create a fixed effect incidence matrix

Description

Creates an incidence matrix for the fixed effects of a mixed-model. This is a very thin wrapper around stats.

Usage

fixef_model_matrix(fixed, data, sparse = TRUE)

Arguments

fixed

A formula specifying the the response variable and the fixed effect terms of the linear mixed-model. Must take the form response ~ predictor(s).

data

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


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