1.5.0
CCC
 
Calculating several statistics in Db

Functions

void Db::statisticsBySample (const VectorString &names, const std::vector< EStatOption > &opers=EStatOption::fromKeys({"MEAN"}), bool flagIso=true, double proba=TEST, double vmin=TEST, double vmax=TEST, const NamingConvention &namconv=NamingConvention("Stats"))
 

Detailed Description

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
namesVector of target variable names
opersVector of operations to be performed
flagIsoThe statistics are calculated only for samples where all target variables have defined values
probaFor 'quant': the quantile for this probability is calculated
vminFor 'prop', 'T', 'Q', 'M', 'B': defines the lower bound of the interval to work in
vmaxFor 'prop', 'T', 'Q', 'M', 'B': defines the upper bound of the interval to work in
namconvNaming 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...).

Function Documentation

◆ statisticsBySample()

void Db::statisticsBySample ( const VectorString names,
const std::vector< EStatOption > &  opers = EStatOption::fromKeys({"MEAN"}),
bool  flagIso = true,
double  proba = TEST,
double  vmin = TEST,
double  vmax = TEST,
const NamingConvention namconv = NamingConvention("Stats") 
)