| create_all_ys_cpp_wrap | R Documentation |
Create all binary Y's convenience function using a randomized design
create_all_ys_cpp_wrap(pCs, pTs, W, two_n, nY)
pCs |
Control-group success probabilities (length |
pTs |
Treatment-group success probabilities (length |
W |
Assignment matrix with |
two_n |
Total number of units |
nY |
Number of Y vectors to generate |
A matrix of boolean Y's
Adam Kapelner
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.