Uploaded April 2021 | Updated September 2026, 2 weeks ago
This video demonstrates how to perform hierarchical binary logistic regression using Stata Version 14. The main demonstration focuses on the use of the nestreg command. An additional portion of the demonstration shows the use of the lrtest command.
A copy of the data file can be downloaded here: drive.google.com/file/d/1YisZj7IqObhPExjFxQ1XJLqZcPh1ylSA/view
A copy of the Powerpoint referenced in the video can be downloaded here: drive.google.com/file/d/1qv6jg4UTnqioNIswOupDR27f9mHUfSUI/view
Do-file containing code: drive.google.com/file/d/1kNgOek1tMXwQRXEZv0bekZ9_IFs2KVH-/view
For another recent video on Binary logistic regression using Stata, please check out: youtu.be/zTCd68CA6o8
More Stata logistic regression videos can be found here: sites.google.com/view/statistics-for-the-real-world/contents/logistic-regression-models
This video demonstrates how to perform hierarchical binary logistic regression using Stata Version 14. The main demonstration focuses on the use of the nestreg command. An additional portion of the demonstration shows the use of the lrtest command.
A copy of the data file can be downloaded here: drive.google.com/file/d/1YisZj7IqObhPExjFxQ1XJLqZcPh1ylSA/view
A copy of the Powerpoint referenced in the video can be downloaded here: drive.google.com/file/d/1qv6jg4UTnqioNIswOupDR27f9mHUfSUI/view
Do-file containing code: drive.google.com/file/d/1kNgOek1tMXwQRXEZv0bekZ9_IFs2KVH-/view
For another recent video on Binary logistic regression using Stata, please check out: youtu.be/zTCd68CA6o8
More Stata logistic regression videos can be found here: sites.google.com/view/statistics-for-the-real-world/contents/logistic-regression-models










![Confidence interval around a sample proportion using SPSS (June, 2020)
This video demonstrates how you can easily obtain a confidence interval around sample proportions using SPSS. In this video I focus on demonstration of Clopper-Pearson exact confidence intervals. You can obtain a copy of the data used in the video here: https://drive.google.com/file/d/1OndJ2wuzxTJA0RaVqW7K3r2bXqX81nNs/view?usp=sharing
Note: Clopper-Pearson intervals are formed using the binomial sampling distribution (see https://en.wikipedia.org/wiki/Binomial_proportion_confidence_interval). An alternative method (not shown in the video, but sometimes shown in textbooks) is to use the z-distribution to construct a symmetric interval around the proportion (referred to as normal distribution approximation). That approach, however, is best used when the sample proportion is nearer to .50 [and not very close to 0 or 1] and/or your sample size is large. As your proportion gets closer to 0 or 1 (i.e., the boundaries for proportions), then larger and larger samples would be required to construct symmetric confidence intervals where one of the bounds does not end up falling outside the range of 0 and 1. A Powerpoint (https://drive.google.com/file/d/1IQWDl3OjZzLF8tgI3cNgYVZGb1JaguFy/view?usp=sharing) and Excel (https://drive.google.com/file/d/1eDIE9GDXpQ0vXnbMrz-xKJ3zVMF6Novk/view?usp=sharing) file can be downloaded that goes into more detail regarding using the normal distribution approximation. Confidence interval around a sample proportion using SPSS (June, 2020)](https://i.ytimg.com/vi/BHXS9CYloP0/mqdefault.jpg)