tedana.metrics.external.compute_external_regressor_correlations

compute_external_regressor_correlations(external_regressors: DataFrame, mixing: DataFrame) DataFrame[source]

Compute correlations between external regressors and ICA component time series.

Parameters:
  • external_regressors ((T x E) pandas.DataFrame) – External regressors, where T is the number of time points and E is the number of external regressors.

  • mixing ((T x C) pandas.DataFrame) – ICA mixing matrix, where T is the number of time points and C is the number of components.

Returns:

correlation_df ((E x C) pandas.DataFrame) – A DataFrame where rows are external regressor names, columns are component names, and values are the Pearson correlation coefficients.