tedana.stats.get_coeffs

get_coeffs(data, X, mask=None, add_const=False)[source]

Performs least-squares fit of X against data

Parameters:
  • data ((S [x E] x T) array_like) – Array where S is samples, E is echoes, and T is time
  • X ((T [x C]) array_like) – Array where T is time and C is predictor variables
  • mask ((S [x E]) array_like) – Boolean mask array
  • add_const (bool, optional) – Add intercept column to X before fitting. Default: False
Returns:

betas – Array of S sample betas for C predictors

Return type:

(S [x E] x C) numpy.ndarray