designCheck function

designCheck

designCheck

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

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.

Returns

  • 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)
  • Maintainer: Derek Beaton
  • License: GPL-2
  • Last published: 2019-01-07

Useful links