format_ipw: Format "long" panel data into "wide" matrices to fit IPW

Description Usage Arguments Value

Description

Format "long" panel data into "wide" matrices to fit IPW

Usage

1
2
format_ipw(outcomes, metadata, outcome_col = NULL, cols = list(unit =
  "unit", time = "time", outcome = "outcome", treated = "treated"))

Arguments

outcomes

Tidy dataframe with the outcomes and meta data

metadata

Dataframe of metadata

outcome_col

Column name which identifies outcomes, if NULL then only one outcome is assumed

cols

Column names corresponding to the units, time variable, outcome, and treated indicator

Value

List of pre and post period outcomes, and treatment indicator


ebenmichael/ents documentation built on May 31, 2019, 8:45 p.m.