make_model_matrix: Produce a list of outcome as well as model matrix

Description Usage Arguments Examples

View source: R/make_model_matrix.R

Description

This function helps to generate the outcome vector and the model matrix based on the model and data given

Usage

1

Arguments

form

A formula that denotes the model of interest

data

A dataset that contains the variables of interest

Examples

1
2
3
  data("iris")
  form <- Sepal.Length ~.
make_model_matrices(form, iris)

Zebedial/bis557 documentation built on Dec. 21, 2020, 2:16 a.m.