Perform independent sample and paired sample t-tests for differences between means of brain imaging phenotypes for a categorical variable.

bstr_ttest(group_var, bstr_data, paired = FALSE, mult_comp = "fdr")

Arguments

group_var

Categorical variable name. This should be present in the demographics csv file associated with bstr_data.

bstr_data

Object of type BstrData().

paired

logical; is TRUE if group_var contains matching (dependent) samples. The default value is FALSE.

mult_comp

method for multiple comparisons correction. The default method is "fdr". See bstr_p_adjust() for valid values.

Details

The degrees of freedom are calculated using the Welch–Satterthwaite approximation by default. bstr_data can be of the type "sba", "tbm", or "roi".