Usage
make.permSpace(IDs,perms,return.permIDs=FALSE,testType="permutation",Strata=NULL)
make.signSpace(N, perms)
allpermutations(Y)
npermutations(Y)
t2p(T, obs.only = TRUE, tail)
Arguments
IDs
vector of IDs to be permuted. If IDs is a scalar, it is replaced with 1:IDs.
return.permIDs
logical. If TRUE, the matrix of permuted IDs is stored and returned. Only used with testType="permutaiton"
N
number of elements of the sample.
Y
a vector of data. It can also be a vector 1:N referring to the IDs of observations.
perms
number of random permutations. If it is a list, it has two elements number (the number of random permutation requested) and seed (the seed to be set when start generating. it is useful for reproducibility)
If perms > number of
T
the (possibly multivariate) permutation space as returned, for example by flip
obs.only
logical. If TRUE only the p-value for observed test statistic is returned, otherwise the whole space is computed
tail
Tail of the distribution being significant for H1. See also argument tail in flip testType
See argument testType in flip Strata
See argument testType in flip