make_flips {flipscores} | R Documentation |
It creates a n_flips
xn_obs
matrix of random +1 and -1.
The first row is made by ones (i.e. the observed test statistic is computed)
Description
It creates a n_flips
xn_obs
matrix of random +1 and -1.
The first row is made by ones (i.e. the observed test statistic is computed)
Usage
make_flips(n_obs, n_flips)
Arguments
n_obs |
number of observations |
n_flips |
number of flips |
Examples
# example code
make_flips(n_obs=10,n_flips=20)
[Package flipscores version 1.3.2 Index]