designCheck {ExPosition} | R Documentation |
designCheck
Description
Checks and/or creates a dummy-coded design matrix.
Usage
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
data <- iris[,c(1:4)]
design <- as.matrix(iris[,c('Species')])
iris.design <- designCheck(data,DESIGN=design,make_design_nominal=TRUE)
[Package ExPosition version 2.8.23 Index]