get_balancer: Find Balancing weights by solving the dual optimization...

Description Usage Arguments Value

Description

Find Balancing weights by solving the dual optimization problem

Usage

1
2
3
4
get_balancer(outcomes, metadata, trt_unit = 1, hyperparam, link = c("logit",
  "linear", "pos-linear"), regularizer = c(NULL, "l1", "l2", "ridge", "linf"),
  normalized = TRUE, outcome_col = NULL, cols = list(unit = "unit", time =
  "time", outcome = "outcome", treated = "treated"), opts = list())

Arguments

outcomes

Tidy dataframe with the outcomes and meta data

metadata

Dataframe of metadata

trt_unit

Unit that is treated (target for regression), default: 0

hyperparam

Regularization hyperparameter

link

Link function for weights

regularizer

Dual of balance criterion

normalized

Whether to normalize the weights

outcome_col

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

cols

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

opts

Optimization options

  • MAX_ITERS Maximum number of iterations to run

  • EPS Error tolerance

Value

outcomes with additional synthetic control added and weights


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