Learn R Programming

perm (version 0.9-9.5)

permControl: Auxiliary for controling permutation tests

Description

A function to create a list of arguments for permTS, permKS or permTREND.

Usage

permControl(cm=NULL,nmc=10^3-1,seed=1234321,digits=12,p.conf.level=.99,setSEED=TRUE)

Arguments

cm
a choose(n,m) by n matrix, used if method='exact.ce', ignored otherwise
nmc
number of Monte Carlo replications, used if method='exact.mc', ignored otherwise
seed
value used in set.seed if method='exact.mc', ignored otherwise
setSEED
logical, set to FALSE when performing simulations that use method='exact.mc'
p.conf.level
confidence level for p value estimate, used if method='exact.mc', ignored otherwise
digits
number of digits to use in signif for precision of test statistics

Value

  • An list with the arguments as components.

Details

When cm=NULL the resulting matrix is created by chooseMatrix, it may be optionally provided here only so that chooseMatrix does not need to be repeatedly called in simulations. Also when doing simulations with method='exact.mc', use setSEED=FALSE so that the seed is not reset to the same value each time you call the permutation test function. See calcPvalsMC for description of how p.conf.level is used.