Description Usage Arguments Details Value
Create a list of arrays representing potential outcomes y_{ij}(a, k), (where a is the treatment level and k is the number of other subjects in a group receiving treatment).
1 2 | generate_po(base_data, parameters = c(0.5, -0.788, -2.953, -0.098, -0.145,
0.351))
|
base_data |
simulated data from |
parameters |
vector of parameters used to generate potential outcomes. Defaults to parameters used in Perez et. al 2014. |
Potential outcomes are generated as bernoulli random variables with expectation:
plogis(X %*% parameters)
. X_{ij} is the vector: (1, a, α, X_{1ij}, X_{2ij}, a * α) where α = (a + k)/n_i.
a list with length(# of groups) where each entry is a n_i x n_i x 2 array representing potential outcomes for each subject by # of other subject's treated by 2 treatment levels 0, 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.