# Any synthetic control libraries in julia?

**URL:** <https://discourse.julialang.org/t/any-synthetic-control-libraries-in-julia/21272>\
**Category:** Statistics\
**Created:** [February 27, 2019, 5:12pm UTC](https://discourse.julialang.org/t/any-synthetic-control-libraries-in-julia/21272 "2019-02-27T17:12:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [February 27, 2019, 5:12pm UTC](https://discourse.julialang.org/t/any-synthetic-control-libraries-in-julia/21272/1 "2019-02-27T17:12:31Z")

</div>

Is anyone doing anything related to [synthetic controls](https://en.wikipedia.org/wiki/Synthetic_control_method) in julia? Like the `Synth` package for R and Stata?

It would be great to see some of the implementations and work done in that space.

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [February 27, 2019, 6:06pm UTC](https://discourse.julialang.org/t/any-synthetic-control-libraries-in-julia/21272/2 "2019-02-27T18:06:52Z")

</div>

@BenjaminBorn has recent work on synthetic controls for macro effects of Brexit and is an avid Julia user, but not sure whether he used his in case?

If there’s nothing I’d be tempted to start something myself actually…

---

<div class="post-metadata">

**Author:** ![BenjaminBorn](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/benjaminborn/32/4910_2.png) [@BenjaminBorn](https://discourse.julialang.org/u/BenjaminBorn)\
**Post date:** [February 28, 2019, 6:58am UTC](https://discourse.julialang.org/t/any-synthetic-control-libraries-in-julia/21272/3 "2019-02-28T06:58:17Z")

</div>

I have to confess that we used Matlab for our [Brexit study](https://voxeu.org/article/300-million-week-output-cost-brexit-vote). I haven’t seen any Synthetic Control Method Julia packages but it shouldn’t be too hard to implement. In the end, the method boils down to a simple minimization problem.

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [February 28, 2019, 1:35pm UTC](https://discourse.julialang.org/t/any-synthetic-control-libraries-in-julia/21272/4 "2019-02-28T13:35:43Z")

</div>

Heresy! I’ve now started something [here](https://github.com/nilshg/SynthControl.jl) to spur myself on, as I had been planning to code up a synthetic control in Julia for a while…

---

<div class="post-metadata">

**Author:** ![kmmate](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kmmate/32/8795_2.png) [@kmmate](https://discourse.julialang.org/u/kmmate)\
**Post date:** [March 18, 2019, 10:57pm UTC](https://discourse.julialang.org/t/any-synthetic-control-libraries-in-julia/21272/5 "2019-03-18T22:57:03Z")

</div>

I have plans to implement it as part of [TreatmentEffects.jl](https://github.com/kmmate/TreatmentEffects.jl) by the summer.
