design: Extract design matrix

View source: R/design.R

designR Documentation

Extract design matrix

Description

Extract design matrix from data.frame and formula

Usage

design(formula, data, intercept = FALSE, rm_envir = FALSE, ...)

Arguments

formula

formula

data

data.frame

intercept

If FALSE (default) an intercept is not included

rm_envir

Remove environment

...

additional arguments (e.g, specials such weights, offsets, subset)

Value

An object of class 'design'

Author(s)

Klaus Kähler Holst


targeted documentation built on May 29, 2024, 2:08 a.m.