powered by
n_flips
n_obs
It creates a n_flipsxn_obs matrix of random +1 and -1. The first row is made by ones (i.e. the observed test statistic is computed)
make_flips(n_obs, n_flips)
number of observations
number of flips
# example code make_flips(n_obs=10,n_flips=20)
Run the code above in your browser using DataLab