107 const Eigen::MatrixXd& dataB,
121 const Eigen::MatrixXd& dataB,
139 int nPermutations = 10000,
141 unsigned int seed = 0);
152 static double tCdf(
double t,
int df);
171 static double betaCf(
double x,
double a,
double b);
177 static double logBeta(
double a,
double b);
STSLIB shared-library export macro and build-info accessors for the statistical-tests library.
Shared enumerations describing tail direction and multiple-comparison correction strategy.
Statistical testing (t-tests, F-tests, cluster permutation, multiple comparison correction).
StatsTailType
Direction of the alternative hypothesis for a t- or F-test (left, right, or two-sided).
Per-call output of a Student t-test: t-statistics, p-values and degrees of freedom.
One-sample, paired and independent two-sample Student t-tests with exact p-values via the regularised...
static double regularizedBeta(double x, double a, double b)
static StatsTtestResult paired(const Eigen::MatrixXd &dataA, const Eigen::MatrixXd &dataB, StatsTailType tail=StatsTailType::Both)
static StatsTtestResult permutation(const Eigen::MatrixXd &data, int nPermutations=10000, StatsTailType tail=StatsTailType::Both, unsigned int seed=0)
static double tCdf(double t, int df)
static StatsTtestResult oneSample(const Eigen::MatrixXd &data, double mu=0.0, StatsTailType tail=StatsTailType::Both)
static StatsTtestResult independent(const Eigen::MatrixXd &dataA, const Eigen::MatrixXd &dataB, StatsTailType tail=StatsTailType::Both)