tedana.model.fit.get_coeffs¶
-
get_coeffs
(data, mask, X, add_const=False)[source]¶ Performs least-squares fit of X against data
Parameters: - data ((S x T) array-like) – Array where S is samples and T is time
- mask ((S,) array-like) – Boolean mask array
- X ((T x C) array-like) – Array where T is time and C is predictor variables
- 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 C)
numpy.ndarray