qis {humanleague}R Documentation

Multidimensional QIS

Description

C++ multidimensional Quasirandom Integer Sampling implementation

Usage

qis(indices, marginals, skips = 0L)

Arguments

indices

a List of 1-d arrays specifying the dimension indices of each marginal

marginals

a List of arrays containing marginal data. The sum of elements in each array must be identical

skips

(optional, default 0) number of Sobol points to skip before sampling

Value

an object containing:

Examples

ageByGender = array(c(1,2,5,3,4,3,4,5,1,2), dim=c(5,2))
ethnicityByGender = array(c(4,6,5,6,4,5), dim=c(3,2))
result = qis(list(c(1,2), c(3,2)), list(ageByGender, ethnicityByGender))

[Package humanleague version 2.3.1 Index]