Version info: Code for this page was tested in Stata 12.1. Table 17.1, page 433. use https://stats.idre.ucla.edu/stat/stata/examples/pma5/depress, clear gen incomecat = income >= 20 tab2 sex incomecat -> tabulation of…
Read More
Search Results for: stata
Stata: Practical Multivariate Analysis by Afifi, May and Clark, Chapter 18
Version info: Code for this page was tested in Stata 12.1. For this chapter, you will need to use the syntax provided in Appendix A to access the School and…
Read More
Stata: Practical Multivariate Analysis by Afifi, May Clark, Chapter 6
Figure 6.1, page 83. NOTE: Throughout this chapter and the next, the variables FFEV1 and MFEV1 have been divided by 100 before use in analyses. We have named these modified…
Read More
Stata: Practical Multivariate Analysis by Afifi, May and Clark, Chapter 7
Page 120. Regression from chapter 6. use https://stats.idre.ucla.edu/stat/stata/examples/pma5/lung, clear generate ffev1a = ffev1/100 regress ffev1a fheight Source | SS df MS Number of obs = 150 ————-+—————————— F( 1, 148)…
Read More
Stata: Practical Multivariate Analysis: Appendix A
You can download all of the (text) data files and codebooks as a zip file. Stata syntax is given below to create data sets from the raw text files. However,…
Read More
Elementary Survey Sampling, 5th Ed, by Scheaffer, Mendenhall and Ott, Chapter 4: Simple random sampling | Stata Textbook Examples
Chapter 4: Simple random sampling Page 89, Table 4.4 use “a\:table44.dta”, clear list +——+ | col1 | |——| 1. | 33.5 | 2. | 32 | 3. | 52 |…
Read More
Multiple Imputation in Stata
Introduction Missing data is a common issue, and more often than not, we deal with the matter of missing data in an ad hoc fashion. The purpose of this seminar…
Read More
Stata FAQ: Why doesn’t the test of the overall survey regression model in Stata match the results from SAS and SUDAAN?
Version info: Code for this page was tested in Stata 12. NOTE: We will use the NHANES II data as an example. The question Let’s say that you ran an…
Read More
Logistic Regression with Stata
This page has been updated to Stata 15.1. Introduction The purpose of this seminar is to help you increase your skills in using logistic regression analysis with Stata. The seminar…
Read More
Introduction to Stata Programming
Many researchers use Stata without ever writing a program even though programming could make them more efficient in their data analysis projects. Stata programming is not difficult since it mainly…
Read More