gen_pm_designs_cpp_wrap: Create PM designs

View source: R/shared.R

gen_pm_designs_cpp_wrapR Documentation

Create PM designs

Description

Create PM designs

Usage

gen_pm_designs_cpp_wrap(indicies_pairs, n, r)

Arguments

indicies_pairs

A matrix of n x 2 indicies where each row is a pair of subjects' indicies

n

Half the number of subjects i.e. the number of pairs

r

The number of assignments to generate

Value

A matrix of r x 2n PM designs of +1/-1 assignments

Author(s)

Adam Kapelner

Examples

## Not run: 
indicies_pairs = matrix(c(1, 2, 3, 4), ncol = 2, byrow = TRUE)
gen_pm_designs_cpp_wrap(indicies_pairs, n = 2, r = 3)

## End(Not run)

GreedyExperimentalDesign documentation built on Jan. 9, 2026, 5:07 p.m.