These functions are meant to calculate several statistics on a set of target variables per sample. The resulting values are stored in variables newly created in the same Db.
- Parameters
-
names | Vector of target variable names |
opers | Vector of operations to be performed |
flagIso | The statistics are calculated only for samples where all target variables have defined values |
proba | For 'quant': the quantile for this probability is calculated |
vmin | For 'prop', 'T', 'Q', 'M', 'B': defines the lower bound of the interval to work in |
vmax | For 'prop', 'T', 'Q', 'M', 'B': defines the upper bound of the interval to work in |
namconv | Naming Convention used as a radix for the variables newly created in the Db (only used when 'flagStoreInDb' is TRUE) |
- Returns
- If there is more than one operator and more than one variable, the statistics are ordered first by variables (all the statistics of the first variable, then all the statistics of the second variable...).
◆ statisticsBySample()
void Db::statisticsBySample |
( |
const VectorString & |
names, |
|
|
const std::vector< EStatOption > & |
opers = EStatOption::fromKeys({ "MEAN" }) , |
|
|
bool |
flagIso = true , |
|
|
double |
vmin = TEST , |
|
|
double |
vmax = TEST , |
|
|
double |
proba = TEST , |
|
|
const NamingConvention & |
namconv = NamingConvention("Stats") |
|
) |
| |