nimare.transforms.sample_sizes_to_dof

sample_sizes_to_dof(sample_sizes)[source]

Calculate degrees of freedom from a list of sample sizes using a simple heuristic.

Added in version 0.0.4.

Parameters:

sample_sizes (array_like) – A list of sample sizes for different groups in the study.

Returns:

dof – An estimate of degrees of freedom. Number of participants minus number of groups.

Return type:

int