make_flips: It creates a 'n_flips'x'n_obs' matrix of random +1 and -1....

View source: R/make_flips.R

make_flipsR Documentation

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)

Description

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)

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)


flipscores documentation built on April 12, 2025, 1:33 a.m.