augment_counterfactuals: Create an augmented dataset of counterfactuals

Description Usage Arguments Value

View source: R/02_analyze_data.R

Description

.. content for details ..

Usage

1
2
augment_counterfactuals(data, outcome_name, counter_names, A_name,
  A_levels)

Arguments

data

data_frame containing outcome, treatment, counterfactual outcomes under each one of three treatment values (0,1,2).

outcome_name

name of the outcome variable.

counter_names

names of the three counterfactual outcome variables

A_name

name of the treatment variable

A_levels

three levels for the treatment variable

Value

data_frame that is three times larger containing counterfactual outcomes for each individuals, weights are calculated from the true PS.


kaz-yos/trim3 documentation built on May 3, 2019, 7:40 p.m.