Figure 6.1, page 87. 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
Search Results for: stata
Computer-Aided Multivariate Analysis, Fourth Edition, by Afifi, Clark and May Chapter 7: Multiple regression and correlation | Stata Textbook Examples
Page 126. Regression from chapter 6. use https://stats.idre.ucla.edu/stat/stata/examples/cama4/lung, clear generate ffev1a = ffev1/100 regress ffev1a fheight Source | SS df MS Number of obs = 150 ————-+—————————— F( 1, 148)…
Read More
Regression Analysis by Example, Third Edition Chapter 10: Biased Estimation of Regression Coefficients | Stata Textbook Examples
Table 10.1, page 265. use https://stats.idre.ucla.edu/stat/stata/examples/chp/p233, clear drop if year >= 60 regress import doprod stock consum, beta Source | SS df MS Number of obs = 11 ———+—————————— F(…
Read More
Regression Analysis by Example, Third Edition Chapter 11: Variable Selection Procedures | Stata Textbook Examples
Table 11.1, page 295. use https://stats.idre.ucla.edu/stat/stata/examples/chp/p189, clear corr x1-x6 (obs=30) | x1 x2 x3 x4 x5 x6 ———+—————————————————— x1 | 1.0000 x2 | 0.5583 1.0000 x3 | 0.5967 0.4933 1.0000…
Read More
Regression Analysis by Example, Third Edition Chapter 12: Logistic Regression | Stata Textbook Examples
Part of table 12.1, page 323. The variable index corresponds to the row value in table 12.1. use https://stats.idre.ucla.edu/stat/stata/examples/chp/p323, clear generate index = _n list in f/5 y x1 x2…
Read More
Regression Analysis by Example, Third Edition Chapter 2: Simple Linear Regression | Stata Textbook Examples
Table 2.3, page 25. use https://stats.idre.ucla.edu/stat/stata/examples/chp/p025a, clear list y x 1. 1 -7 2. 14 -6 3. 25 -5 4. 34 -4 5. 41 -3 6. 46 -2 7. 49…
Read More
Regression Analysis by Example, Third Edition Chapter 3: Multiple Linear Regression | Stata Textbook Examples
Table 3.3, page 54. use https://stats.idre.ucla.edu/stat/stata/examples/chp/p054, clear list y-x3 y x1 x2 x3 1. 43 51 30 39 2. 63 64 51 54 3. 71 70 68 69 4. 61…
Read More
Regression Analysis by Example, Third Edition Chapter 4: Regression Diagnostics | Stata Textbook Examples
Figure 4.1, page 91. Duplicates figure 2.3 from Chapter 2. use https://stats.idre.ucla.edu/stat/stata/examples/chp/p095, clear Table 4.1, page 95. list y x1 x2 1. 12.37 2.23 9.66 2. 12.66 2.57 8.94 3….
Read More
Regression Analysis by Example, Third Edition Chapter 5: Qualitative Variables as Predictors | Stata Textbook Examples
Note: The generate command is used to add an id number to the observations. use https://stats.idre.ucla.edu/stat/stata/examples/chp/p124 generate id = _n Table 5.1, page 124. list s x e m 1….
Read More
Regression Analysis by Example, Third Edition Chapter 6: Transformation of Variables | Stata Textbook Examples
use https://stats.idre.ucla.edu/stat/stata/examples/chp/p157, clear Table 6.2, page 157. list t n_t 1. 1 355 2. 2 211 3. 3 197 4. 4 166 5. 5 142 6. 6 106 7. 7…
Read More
