generate_po: Generate Potential Outcomes

Description Usage Arguments Details Value

Description

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).

Usage

1
2
generate_po(base_data, parameters = c(0.5, -0.788, -2.953, -0.098, -0.145,
  0.351))

Arguments

base_data

simulated data from sim_base_data

parameters

vector of parameters used to generate potential outcomes. Defaults to parameters used in Perez et. al 2014.

Details

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.

Value

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


bsaul/interferenceSim documentation built on May 13, 2019, 8:12 a.m.