Table 14.2, page 369. NOTE: The values shown in the text are listed as eigenvectors in the Stata output. use https://stats.idre.ucla.edu/stat/stata/examples/pma5/depress, clear pca c1-c20, factors(5) Principal components/correlation Number of obs…
Read More
Search Results for: stata
Stata: Practical Multivariate Analysis by Afifi, May and Clark, Chapter 15
Version info: Code for this page was tested in Stata 12.1. Table 15.7, page 398. NOTE: The horst option on the rotate command standardizes the initial factor loadings for each…
Read More
Stata: Practical Multivariate Analysis by Afifi, May and Clark, Chapter 16
Version info: Code for this page was tested in Stata 12.1. Table 16.2, page 410. use https://stats.idre.ucla.edu/stat/stata/examples/pma5/companies, clear local i = 1 foreach var of varlist ror5-payoutr1 { egen z`i’…
Read More
Stata: Practical Multivariate Analysis by Afifi, May and Clark, Chapter 17
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
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
