Learn R Programming

hesim (version 0.5.5)

create_input_mats.formula_list: Create input matrices from formula

Description

This is an internal function for creating input matrices from formulas. It is currently used in some unit tests.

Usage

# S3 method for formula_list
create_input_mats(object, input_data, ...)

Value

An object of class input_mats.

Arguments

object

An object of the appropriate class.

input_data

An object of class expanded_hesim_data returned by expand.hesim_data(). It is used to look for the variables needed to create an input matrix for use in a statistical models and the ID variables for indexing rows in the input matrix.

...

Further arguments passed to model.matrix().

See Also

create_input_mats()