designCheck: designCheck

Description Usage Arguments Details Value Author(s) Examples

View source: R/designCheck.R

Description

Checks and/or creates a dummy-coded design matrix.

Usage

1
designCheck(DATA, DESIGN = NULL, make_design_nominal = TRUE)

Arguments

DATA

original data that should be matched to a design matrix

DESIGN

a column vector with levels for observations or a dummy-coded matrix

make_design_nominal

a boolean. Will make DESIGN nominal if TRUE (default).

Details

Returns a properly formatted, dummy-coded (or disjunctive coding) design matrix.

Value

DESIGN

dummy-coded design matrix

Author(s)

Derek Beaton

Examples

1
2
3
	data <- iris[,c(1:4)]
	design <- as.matrix(iris[,c('Species')])
	iris.design <- designCheck(data,DESIGN=design,make_design_nominal=TRUE)

ExPosition documentation built on May 1, 2019, 7:06 p.m.