mod_matrix: Design matrix

Description Usage Arguments Value Examples

View source: R/model_matrix.R

Description

mod_matrix returns the design matrix associated to the model formula.

Usage

1

Arguments

data

An object of type data.frame

formula

An object of type formula

Value

A tibble of the design matrix.

Examples

1
mod_matrix(mtcars, mpg~cyl)

elben10/econr documentation built on May 3, 2019, 6:44 p.m.