Statistics, visualization, and data export
Last updated
Last updated
The simple statistics module is limited to pairwise significance tests between any defined data configurations (DCs). For setting up DCs see . These configurations can include any combination of selected conditions, groups, or sessions.
To perform statistical contrasts and export connectivity data, a pair of DCs needs to be set with the con.contrast2test parameter. The frequency range in Hz for which connectivity will be estimated is defined with the con.freqRange and the associated name (visible in the export files) by the con.subTitle variable. The significance threshold (used for visualization purposes) can be applied with the con.pThresh. To choose between 'within' or 'between' comparisons, con.testType needs to be set, while one- or two-tailed tests are defined by the con.oneTailed option. As connectivity data tends to have skewed distribution, it is recommended to set the con.isParametric to 0, which will result in performing the Wilcoxon signed rank test instead of its parametric version. Moreover, to remove outlier values that can still be present in connectivity data, the IQR rejection methods can be applied before statistical testing by setting the con.iqr (with a recommended value around 3). By default, statistics are only performed for leakage-corrected data, as uncorrected results are usually contaminated with many spurious effects. To see the statistics for the uncorrected data set, set con.unc parameter to 1.
For user convenience, some of the above parameters can include multiple values:.
con.contrast2test,
con.freqRange and con.subTitle (both have to match),
con.pThresh,
con.iqr
If so, these parameters will be sequentially read, and multiple analyses will be performed within a single statistical run. In the example below, two contrasts will be checked, each one in three frequency bands, and results will be reported using two levels of statistical threshold. Overall, this will produce 2 x 3 x 2 outputs.
Data export is performed together with running statistical comparisons (as defined by the con.contrast2test). Group connectivity data are then saved into the xls spreadsheet together with participant Id, group, condition, and session data. By default, all combinations of connectivity directions are included. In the spreadsheet header, all relevant information is provided, including from/to ROI names.
Exported files include:
xls spreadsheets with connectivity data (if con.iqr parameter is set, values exceeding the threshold will turn into missing data),
significance matrices of nroi x nroi size, showing thresholded p-levels for all connections between defined ROIs.
boxplots for directions that passed the significance test, depicting the distributions of DTF values at both compared DCs.
For more advanced statistical modeling, exported DTF values can be analyzed using external statistical packages.
Significant effects are visualized on the 3D head images. Both vector images in Matlab fig format, which allow for custom rotation, and static jpg top-view figures are saved.