vector_type MR::Math::Stats::GLM::abs_effect_size | ( | const matrix_type & | measurements, |
const matrix_type & | design, | ||
const Hypothesis & | hypothesis | ||
) |
Compute the effect of interest
measurements | a matrix storing the measured data across subjects in each column |
design | the design matrix |
hypothesis | a Hypothesis class instance defining the effect of interest |
matrix_type MR::Math::Stats::GLM::abs_effect_size | ( | const matrix_type & | measurements, |
const matrix_type & | design, | ||
const vector< Hypothesis > & | hypotheses | ||
) |
void MR::Math::Stats::GLM::all_stats | ( | const matrix_type & | measurements, |
const matrix_type & | design, | ||
const vector< CohortDataImport > & | extra_columns, | ||
const vector< Hypothesis > & | hypotheses, | ||
const index_array_type & | variance_groups, | ||
vector_type & | cond, | ||
matrix_type & | betas, | ||
matrix_type & | abs_effect_size, | ||
matrix_type & | std_effect_size, | ||
matrix_type & | stdev | ||
) |
Compute all GLM-related statistics This function can be used when the design matrix varies between elements, due to importing external data for each element from external files
measurements | a matrix storing the measured data for each subject in a column |
design | the fixed portion of the design matrix |
extra_columns | the variable columns of the design matrix |
hypotheses | a vector of Hypothesis class instances defining the effects of interest |
betas | the matrix containing the output GLM betas |
abs_effect_size | the matrix containing the output effect |
std_effect_size | the matrix containing the output standardised effect size |
stdev | the matrix containing the output standard deviation |
void MR::Math::Stats::GLM::all_stats | ( | const matrix_type & | measurements, |
const matrix_type & | design, | ||
const vector< Hypothesis > & | hypotheses, | ||
const index_array_type & | variance_groups, | ||
matrix_type & | betas, | ||
matrix_type & | abs_effect_size, | ||
matrix_type & | std_effect_size, | ||
matrix_type & | stdev | ||
) |
Compute all GLM-related statistics This function can be used when the design matrix remains fixed for all elements to be tested.
measurements | a matrix storing the measured data for each subject in a column |
design | the design matrix |
hypotheses | a vector of Hypothesis class instances defining the effects of interest |
betas | the matrix containing the output GLM betas |
abs_effect_size | the matrix containing the output effect |
std_effect_size | the matrix containing the output standardised effect size |
stdev | the matrix containing the output standard deviation |
|
protected |
|
protected |
|
protected |
matrix_type MR::Math::Stats::GLM::solve_betas | ( | const matrix_type & | measurements, |
const matrix_type & | design | ||
) |
Compute a matrix of the beta coefficients
measurements | a matrix storing the measured data across subjects in each column |
design | the design matrix |
vector_type MR::Math::Stats::GLM::std_effect_size | ( | const matrix_type & | measurements, |
const matrix_type & | design, | ||
const Hypothesis & | hypothesis | ||
) |
Compute cohen's d, the standardised effect size between two means
measurements | a matrix storing the measured data across subjects in each column |
design | the design matrix |
hypothesis | a Hypothesis class instance defining the effect of interest |
matrix_type MR::Math::Stats::GLM::std_effect_size | ( | const matrix_type & | measurements, |
const matrix_type & | design, | ||
const vector< Hypothesis > & | hypotheses | ||
) |
matrix_type MR::Math::Stats::GLM::stdev | ( | const matrix_type & | measurements, |
const matrix_type & | design | ||
) |
Compute the pooled standard deviation
measurements | a matrix storing the measured data across subjects in each column |
design | the design matrix |
matrix_type MR::Math::Stats::GLM::stdev | ( | const matrix_type & | measurements, |
const matrix_type & | design, | ||
const index_array_type & | variance_groups | ||
) |
Compute the standard deviation of each variance group
measurements | a matrix storing the measured data across subjects in each column |
design | the design matrix |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |