tedana.stats.get_coeffs

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

Perform 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 ((S [x E] x C) numpy.ndarray) – Array of S sample betas for C predictors