brainstat.tests.testutil.array2effect¶
-
brainstat.tests.testutil.
array2effect
(A, n_random=0)[source]¶ Converts an input array to a set of effects.
- Parameters
A (np.array) – A samples-by-effects array.
n_random (int, optional) – Number of random effects, by default 0. Random effects are selected from the first columns of A.
- Returns
brainstat.stats.terms.FixedEffect, brainstat.stats.terms.MixedEffect – The fixed/mixed effects.