Introduction
Confidence intervals for means can be calculated for continuous variables with a normal distribution.
Function
| Basic command |
|
| Useful options |
|
| Explanations | |
varlist | Insert the name(s) of the variable(s) that you want to use. |
level(#) | Specify the confidence level. Default is 95. |
More informationhelp ci |
Practical example
| Dataset |
| StataData1.dta |
| Variable name | gpa |
| Variable label | Grade point average (Age 15, Year 1985) |
| Value labels | N/A |
ci means gpa |

In this example, we can see that the mean value for gpa is 3.18. The 95% confidence interval is 3.16-3.19.