This package implements methods for maximum entropy synthetic controls using multiple outcomes.
To install this package, first ensure that devtools
is installed with
install.packages("devtools")
then install the package from GitHub with
devtools::install_github("ebenmichael/ents")
The following requires a data frame outcomes
which at a minimum has the following columns:
outcome_id
: ID or name of the outcometime
: Time that outcome was measuredoutcome
: Value of the outcometreated
: Whether the unit is treatedand a data frame metadata
which at a minimum has the following columns:
t_int
: Time of intervention/treatmentFour methods of imputing a synthetic control are implemented:
get_synth
: The Abadie, Diamond, Hainmueller (2010) synthetic controls estimator, fit using Synth
get_l2_entropy
: The maximum entropy synthetic controls estimatorget_dr
: The maximum entropy synthetic controls estimator augmented with a linear outcome modelget_ipw
: An IPW estimator fit with regularized logistic regressionEach function takes in outcomes
and metadata
along with hyper-parameters, and returns as list including a dataframe with the synthetic control added and the synthetic control weights.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.