powered by
Checks and/or creates a dummy-coded design matrix.
designCheck(DATA, DESIGN = NULL, make_design_nominal = TRUE)
dummy-coded design matrix
original data that should be matched to a design matrix
a column vector with levels for observations or a dummy-coded matrix
a boolean. Will make DESIGN nominal if TRUE (default).
Derek Beaton
Returns a properly formatted, dummy-coded (or disjunctive coding) design matrix.
data <- iris[,c(1:4)] design <- as.matrix(iris[,c('Species')]) iris.design <- designCheck(data,DESIGN=design,make_design_nominal=TRUE)
Run the code above in your browser using DataLab