Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

designCheck

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)

ExPosition

Exploratory Analysis with the Singular Value Decomposition

v2.8.23
GPL-2
Authors
Derek Beaton, Cherise R. Chin Fatt, Herve Abdi
Initial release
2018-12-27

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.