bquistorff / synth_runner

A tool to run a pool of synthetic controls, conduct inference, and produce visualizations.
42 stars 27 forks source link

Treatment line offset issue #14

Closed jswhitegit closed 6 years ago

jswhitegit commented 6 years ago

Preliminaries

Before submitting an issue, please check (with x in brackets) that you:

Expected behavior and actual behavior

When using the single_treatment_graphs command, the trlinediff() option offsets the treatment line for the effects graph but does not do so for the raw graph. This occurred for the example in the help file, as well as in the data set in which I am working.

Steps to reproduce the problem

sysuse smoking tsset state year synth cigsale beer(1984(1)1988) lnincome(1972(1)1988) retprice age15to24 cigsale(1988) cigsale(1980) cigsale(1975), trunit(3) trperiod(1989) gen_vars synth_runner cigsale beer(1984(1)1988) lnincome(1972(1)1988) retprice age15to24 cigsale(1988) cigsale(1980) cigsale(1975), trunit(3) trperiod(1989) gen_vars

System information

bquistorff commented 6 years ago

Thanks. Fixed.