This is an internal function for creating input matrices from formulas. It is currently used in some unit tests.
# S3 method for formula_list
create_input_mats(object, input_data, ...)
An object of class input_mats
.
An object of the appropriate class.
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()
.
create_input_mats()