Pandora-IsoMemo / CausalR

GNU General Public License v3.0
0 stars 0 forks source link

text wrap on output #12

Open policybot2020 opened 1 year ago

policybot2020 commented 1 year ago

https://groups.google.com/g/shiny-discuss/c/SwkZ0u2mu0I?pli=1

policybot2020 commented 1 year ago

Posterior inference {CausalImpact}

                     Average         Cumulative    

Actual 189 3787
Prediction (s.d.) 195 (5.4) 3903 (107.3)
95% CI [185, 206] [3691, 4114]

Absolute effect (s.d.) -5.8 (5.4) -116.0 (107.3) 95% CI [-16, 4.8] [-327, 95.8]

Relative effect (s.d.) -2.9% (2.7%) -2.9% (2.7%)
95% CI [-7.9%, 2.6%] [-7.9%, 2.6%]

Posterior tail-area probability p: 0.13467 Posterior prob. of a causal effect: 87%

For more details, type: summary(impact, "report")

INTERPRETATION:

Analysis report {CausalImpact}

During the post-intervention period, the response variable had an average value of approx. 189.36. In the absence of an intervention, we would have expected an average response of 195.16. The 95% interval of this counterfactual prediction is [184.57, 205.69]. Subtracting this prediction from the observed response yields an estimate of the causal effect the intervention had on the response variable. This effect is -5.80 with a 95% interval of [-16.33, 4.79]. For a discussion of the significance of this effect, see below.

Summing up the individual data points during the post-intervention period (which can only sometimes be meaningfully interpreted), the response variable had an overall value of 3.79K. Had the intervention not taken place, we would have expected a sum of 3.90K. The 95% interval of this prediction is [3.69K, 4.11K].

The above results are given in terms of absolute numbers. In relative terms, the response variable showed a decrease of -3%. The 95% interval of this percentage is [-8%, +3%].

This means that, although it may look as though the intervention has exerted a negative effect on the response variable when considering the intervention period as a whole, this effect is not statistically significant, and so cannot be meaningfully interpreted. The apparent effect could be the result of random fluctuations that are unrelated to the intervention. This is often the case when the intervention period is very long and includes much of the time when the effect has already worn off. It can also be the case when the intervention period is too short to distinguish the signal from the noise. Finally, failing to find a significant effect can happen when there are not enough control variables or when these variables do not correlate well with the response variable during the learning period.

The probability of obtaining this effect by chance is p = 0.135. This means the effect may be spurious and would generally not be considered statistically significant.