out_Z_household: This function returns the treatment status for all...

View source: R/functions_auxiliary.R

out_Z_householdR Documentation

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.

Description

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.

Usage

out_Z_household(N, K, treatment_list, housestruct)

Arguments

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.

Value

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.


dpuelz/CliqueRT documentation built on Jan. 6, 2023, 11:20 p.m.