Skip to contents

This function creates a matrix_term object, which is a set of regression variables stored as a numeric matrix.

Usage

matrix_term(varname, mat)

Arguments

varname

The name of the variable.

mat

The matrix of values.

Value

A matrix_term object.

Details

Create a matrix_term object.

Examples

mat <- matrix(rnorm(100 * 10), 100, 10)
mterm <- matrix_term("mterm", mat)