tfcausalimpact icon indicating copy to clipboard operation
tfcausalimpact copied to clipboard

find the respont and point.pred

Open aazz7777 opened this issue 10 months ago • 2 comments

I'm trying to find dw score and mape value

In R preperiod <- subset(impact$series, cum.effect == 0) Looks like impact$series ioutput return all the outout where cum.effect is 0.

I want to get the value that refer in R. what would be the python using inference? This respoinse and point.pred value preperiod$res <- preperiod$response - preperiod$point.pred

is it possible to know Which one is equivalent to point prediction ?

Thank you in advance!

aazz7777 avatar Apr 01 '24 20:04 aazz7777

Hi @aazz7777 ,

Not sure if I understood correctly your question but if your looking for the equivalents of response and point.pred it think they would be ci.post_data[:, 0] and ci.complete_preds_means (where date < pre_period).

WillianFuks avatar Apr 11 '24 18:04 WillianFuks

thank you! yes I wanted to extract point.pred which is average prediction value! preperiod$response was just y value for preintervention period!

aazz7777 avatar Apr 11 '24 19:04 aazz7777