The within-group pairwise design matrix TDA's mldes builds for
MLRC models: for objects with attribute rows z and a grouping
in consecutive runs, the row for the ordered pair (kk, k) holds the
products z[k, i1] * z[kk, i2] (i2-major) plus an indicator for
k == kk when both objects are in the same group, and zeros otherwise.
Semantics established against the source and verified cell-for-cell;
see examples/coverage/mldesops.cf.
Usage
tda_mlrc_design(z, groups, dir = tempfile("tda"), ...)Arguments
- z
an n x q matrix, one row per object.
- groups
length-n vector; consecutive equal values form groups.
- dir
working directory.
- ...
passed to
tda_run.
See also
Other regression:
TDA_FAMILIES,
TDA_QRMODELS,
tda_freg(),
tda_gdf(),
tda_l1reg(),
tda_lsreg(),
tda_mreg(),
tda_nlreg(),
tda_npreg(),
tda_zreg()