makePermSpaceID: Constructs Row Indices Permutation Space

Description Usage Arguments Value Author(s)

View source: R/utilities.R

Description

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

Usage

1
2
  .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

Author(s)

Federico Mattiello <federico.mattiello@gmail.com>


SOUP documentation built on May 29, 2017, 9:50 p.m.

Search within the SOUP package
Search all R packages, documentation and source code