enigmatoolbox.utils.useful.zscore_matrix

enigmatoolbox.utils.useful.zscore_matrix(data, group, controlCode)[source]

Z-score data relative to a given group (author: @saratheriver)

Parameters:
  • data (pandas.DataFrame) – Data matrix (e.g. thickness data), shape = (n_subject, n_region)
  • group (list) – Group assignment (e.g, [0, 0, 0, 1, 1, 1], same length as n_subject.
  • controlCode (int) – Value that corresponds to “baseline” group
Returns:

Z – Z-scored data relative to control code

Return type:

pandas.DataFrame