Learn R Programming

flipscores (version 1.3.2)

make_flips: 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

Run this code
# example code
make_flips(n_obs=10,n_flips=20)

Run the code above in your browser using DataLab