Learn R Programming

SOUP (version 1.1)

.makePermSpaceID: Constructs Row Indices Permutation Space

Description

Constructs the permutation space of row indices depending on the type of analysis

Usage

.makePermSpaceID(nObs, analysisType, strata, seed, nPerms)

Arguments

nObs
integer total number of observations
analysisType
character type of the analysis to be performed
strata
character vector or factor containing the covarite used for stratification; if analysisType is "strata" then this parameter is provided
seed
optional integer seed for the RNG
nPerms
integer number of permutations to be performed

Value

either a matrix in the case of "simple" analysisType or a $3$-ways array, containing the permuted row indices