getdata: Combined Data and Specified Design Matrices

Description Usage Arguments Value Examples

View source: R/getdata.R

Description

Extracts the dependent variable and full design matrix from an object of class designmatrix and combined them into a single data frame.

Usage

1
getdata(dm)

Arguments

dm

An object of class designmatrix.

Value

A data frame with a column for the dependent variable (labeled DV), and a remaining set of columns for the full design matrix extracted from the designmatrix object.

Examples

1
2
3
# Example with R data set 'PlantGrowth'
dm = designmatrix( PlantGrowth, list( 'weight', 'group' ) )
df = getdata( dm )

rettopnivek/designmatrix documentation built on Jan. 13, 2020, 7:09 p.m.