model_matrices: Extract X and Y from data

Description Usage Arguments Examples

View source: R/model-matrices.R

Description

Make model matrices

Usage

1
model_matrices(form, d)

Arguments

form

a formula with the legal format.

d

a dataframe provided by the user.

Examples

1
2
3
data(iris)
fit <- model_matrices(Sepal.Length ~ ., iris)
fit$X

BillyTian/bis557 documentation built on Dec. 19, 2020, 7:30 a.m.