create_all_ys_cpp_wrap: Create all binary Y's convenience function using a randomized...

View source: R/shared.R

create_all_ys_cpp_wrapR Documentation

Create all binary Y's convenience function using a randomized design

Description

Create all binary Y's convenience function using a randomized design

Usage

create_all_ys_cpp_wrap(pCs, pTs, W, two_n, nY)

Arguments

pCs

Control-group success probabilities (length two_n)

pTs

Treatment-group success probabilities (length two_n)

W

Assignment matrix with nY rows and two_n columns

two_n

Total number of units

nY

Number of Y vectors to generate

Value

A matrix of boolean Y's

Author(s)

Adam Kapelner

Examples

## Not run: 
pCs = rep(0.2, 4)
pTs = rep(0.8, 4)
W = matrix(c(1, 0, 1, 0, 0, 1, 0, 1), nrow = 2, byrow = TRUE)
create_all_ys_cpp_wrap(pCs, pTs, W, two_n = 4, nY = 2)

## End(Not run)

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