Hello -
I would like to see whether I can add confidence interval (95%) to the cumulative distribution function graph.
Here is sample data:
I graph the cdf by the following code:
cumul X, generate(cum)
sort cum
line cum X, ylab(, grid) ytitle("") xlab(, grid)
I manually calculated the upper and the lower bound of the X via: ci means X
such that
I would like to see whether I can add X_high and X_low to the existing graph created above.
Could anyone give me a hand. I tried adding the X_high and X_low to the line cum X, but am not successful.
Thank you.
I would like to see whether I can add confidence interval (95%) to the cumulative distribution function graph.
Here is sample data:
| X |
| 0.086957 |
| 0.010033 |
| 0.053512 |
| -0.25418 |
| -0.47492 |
| -0.47492 |
| -0.38796 |
| -0.45485 |
| -0.36789 |
| -0.32441 |
| -0.23746 |
| -0.19398 |
| -0.10702 |
| -0.02007 |
| -0.09699 |
| -0.17391 |
| 0 |
I graph the cdf by the following code:
cumul X, generate(cum)
sort cum
line cum X, ylab(, grid) ytitle("") xlab(, grid)
I manually calculated the upper and the lower bound of the X via: ci means X
such that
| X | mean_X | X_high | X_low |
| 0.086957 | -0.2010624 | -0.2991645 | -0.1029602 |
| 0.010033 | -0.2010624 | -0.2991645 | -0.1029602 |
| 0.053512 | -0.2010624 | -0.2991645 | -0.1029602 |
| -0.25418 | -0.2010624 | -0.2991645 | -0.1029602 |
| -0.47492 | -0.2010624 | -0.2991645 | -0.1029602 |
| -0.47492 | -0.2010624 | -0.2991645 | -0.1029602 |
| -0.38796 | -0.2010624 | -0.2991645 | -0.1029602 |
| -0.45485 | -0.2010624 | -0.2991645 | -0.1029602 |
| -0.36789 | -0.2010624 | -0.2991645 | -0.1029602 |
| -0.32441 | -0.2010624 | -0.2991645 | -0.1029602 |
| -0.23746 | -0.2010624 | -0.2991645 | -0.1029602 |
| -0.19398 | -0.2010624 | -0.2991645 | -0.1029602 |
| -0.10702 | -0.2010624 | -0.2991645 | -0.1029602 |
| -0.02007 | -0.2010624 | -0.2991645 | -0.1029602 |
| -0.09699 | -0.2010624 | -0.2991645 | -0.1029602 |
| -0.17391 | -0.2010624 | -0.2991645 | -0.1029602 |
| 0 | -0.2010624 | -0.2991645 | -0.1029602 |
I would like to see whether I can add X_high and X_low to the existing graph created above.
Could anyone give me a hand. I tried adding the X_high and X_low to the line cum X, but am not successful.
Thank you.

Comment