bebi103.bootstrap.draw_perm_reps
- bebi103.bootstrap.draw_perm_reps(data_1, data_2, func, size=1, args=())
Generate permutation replicates of func from data_1 and data_2
- Parameters
data_1 (array_like) – One-dimensional array of data.
data_2 (array_like) – One-dimensional array of data.
func (function) – Function, with call signature func(x, y, *args) to compute replicate statistic from permutation sample. It must return a single, scalar value.
size (int, default 1) – Number of pairs bootstrap replicates to draw.
args (tuple, default ()) – Arguments to be passed to func.
- Returns
output – Permutation replicates.
- Return type
ndarray