GenContrastVariables {MDFS} | R Documentation |
Generate contrast variables from data
Description
Generate contrast variables from data
Usage
GenContrastVariables(data, n.contrast = max(ncol(data), 30))
Arguments
data |
data organized in matrix with separate variables in columns |
n.contrast |
number of constrast variables (defaults to max of 1/10 of variables number and 30) |
Value
A list with the following key names:
-
indices
– vector of indices of input variables used to construct contrast variables -
x
– data with constrast variables appended to it -
mask
– vector of booleans making it easy to select just contrast variables
Examples
GenContrastVariables(madelon$data)
[Package MDFS version 1.5.3 Index]