perm_test_disc {R2sample}R Documentation

run permutation test.

Description

run permutation test.

Usage

perm_test_disc(x, y, vals, TS, typeTS, TSextra, samplingmethod = 1L, B = 5000L)

Arguments

x

A vector of counts or weights.

y

A vector of counts or weights.

vals

A numeric vector. Indicates discrete data.

TS

routine to calculate test statistics for non-chi-square tests

typeTS

type of a test statistic

TSextra

additional info passed to TS, if necessary

samplingmethod

=1, 1 for independence sampling, 2 for MCMC

B

Number of simulation runs.

Value

A list with test statistics and p values


[Package R2sample version 2.2.0 Index]