View source: R/functions_auxiliary.R
out_bassefeller | R Documentation |
Simulates an outcome vector based on the treatment assignment vector. The specific data generating procedure is adopted from Basse & Feller (2018).
out_bassefeller( N, K, Zobs, tau_main, housestruct = NULL, tau_equal = F, sig_c = 0.1, sig_y = 0.5, taus = 0.7, taup = 1.5, mu00 = 2, equal = T )
N |
The number of observations (kids). |
K |
The number of houses. |
Zobs |
Observed treatment assignment vector. |
tau_main |
The main effect such that we force Y_i(1) = Y_i(0) + |
housestruct |
The household structure. A vector whose length is the number of household, and
where each entry specifies number of units in a household. If not specified, will generate from |
tau_equal |
If |
sig_c |
Standard error on the causal effect. Here σ_μ=σ_τ= |
sig_y |
Standard error on the outcome vector. |
taus |
Spillover effect. |
taup |
Primary effect. |
mu00 |
The effect on pure control units. |
equal |
A binary parameter that determines the house structure when it's not specified.
If |
An outcome vector of length N
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.