perm_test: Permutation test

Description Usage Arguments Details

View source: R/shuffle.r

Description

Permutation test

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
perm_test(
  data,
  statistic,
  R,
  ...,
  ncores = 1L,
  cl = NULL,
  alternative = "less",
  shuffle.args = list()
)

Arguments

data

A data set with at least 2 columns. The first columns holds times, and the second column individual ids.

statistic

A function that returns a vector. The statistic to compute

R

Integer scalar. Number of replications.

...

Further arguments passed to statistic

ncores

integer scalar. Number of cores to use.

cl

An object of class cluster.

alternative

Character scalar. Either of "less", "two.sided", or "greater".

shuffle.args

List of aditional parameters passed to shuffle_bites.

Details

This function relies on the shuffle_bites.


gvegayon/biteme documentation built on June 16, 2021, 5:30 p.m.