TExPosition's DESIGN matrix check function. Calls into ExPosition's
designCheck
.
texpoDesignCheck(
DATA = NULL,
DESIGN = NULL,
make_design_nominal = TRUE,
force_bary = FALSE
)
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).
a boolean. If TRUE, it forces the check for barycentric
methods (tepDICA, tepBADA). If FALSE, designCheck
is
performed.
Derek Beaton
For BADA & DICA, execution stops if:
1. DESIGN has more columns (groups)
than observations, 2. DESIGN has only 1 column (group), or 3. DESIGN has at
least 1 occurence where an observation is the only observation in a group
(i.e., colSums(DESIGN)==1 at least once).