Written by:
Ylva B Almquist
Introduction
Confidence intervals for variances and standard deviations can be calculated variables that are continuous.
Function
| Basic command |
ci variances varlist |
| Useful options |
ci variances varlist, level(#)
ci variances varlist, sd level(#) |
| Explanations | |
varlist | Insert the name(s) of the variable(s) that you want to use. |
sd | Option to display confidence interval for standard deviation. |
level(#) | Specify the confidence level. Default is 95. |
Practical example
| Variable name | cognitive |
| Variable label | Cognitive test score (Age 15, Year 1985) |
| Value labels | N/A |
Here, the variance (5210) and its 95% confidence interval (5061-5367) is shown.
ci variances cognitive, sd |
This shows the standard deviation (72.18) and its 95% confidence interval (71.14-73.26).