sdfordham / pysyncon

A python module for the synthetic control method
MIT License
41 stars 9 forks source link

Extracting numerical data #25

Closed kloskas closed 11 months ago

kloskas commented 11 months ago

Thanks for this package, it's awesome that covers multivariate units for fit instead of just the outcome variable! I just wanted to know how to get the actual gaps_plot, cv_result.plot, path_plot data instead of only graphs, they're useful visually but I wanted to check the cumulative effect of the treatment.

sdfordham commented 11 months ago

You need to use some private methods to get these

kloskas commented 11 months ago

Thanks, I only get the data until the treatment though... how can I see the projected post-treatment?

sdfordham commented 11 months ago

E.g. in the situation of the Basque paper, one might run

ser_1 = synth._gaps(time_period=range(1955, 1998))
ser_2 = synth._synthetic(time_period=range(1955, 1998))
kloskas commented 11 months ago

Great thanks!