View source: R/functions_auxiliary.R
out_Z_household | R Documentation |
1
rather than 2
. Please see
the example.This function returns the treatment status for all observations. Note that treated
kid in treated household here also has status 1
rather than 2
. Please see
the example.
out_Z_household(N, K, treatment_list, housestruct)
N |
The number of observations (kids). |
K |
The number of houses. |
treatment_list |
A list of treated houses and treated kids. |
housestruct |
House structure vector that gives number of kids in each household. |
an N x 3 matrix (N = # of observations (kids)), the first column identifies which households are treated with a "1" for the first kid in a treated household, the second and third columns are the ones that matter, they are the treatment and exposure vectors at the observation (kid) level.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.