fixef_model_matrix: Create a fixed effect incidence matrix

Description Usage Arguments Value

View source: R/create_model_matrices.R

Description

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

Usage

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

Value

A model matrix.


neyhartj/gws documentation built on Nov. 9, 2017, 8:35 p.m.