Table in the middle of page 160 on data file duncan. use https://stats.idre.ucla.edu/stat/stata/examples/ara/duncan, clear (From Fox, Applied Regression Analysis. Use ‘notes’ command for source of data) sort occ_type by occ_type:…
Read More
Search Results for: stata
Applied Regression Analysis Chapter 9: Statistical Theory for Linear Models | Stata Textbook Examples
Linear Contrasts on page 209 using the data file friendly. Stata does not have a built-in contrast command; however, ATS has developed a program that will do ANOVA contrasts. You…
Read More
Applied Regression Analysis by Fox Data Files | Stata Textbook Examples
Stata Textbook Examples Applied Regression Analysis Data Files This page contains the data files for the book Applied Regression Analysis, Linear Models, and Related methods by John Fox. We are…
Read More
Applied Survival Analysis by Hosmer, Lemeshow and May Chapter 1: Introduction | Stata Textbook Examples
Table 1.1 on pages 4 and 5 using the whas100 data. use https://stats.idre.ucla.edu/stat/examples/asa2/whas100, clear label define status 0 “alive” 1 “dead” label value folstatus status label define gender 0 “male”…
Read More
Applied Survival Analysis by Hosmer, Lemeshow and May Chapter 2: Descriptive Methods for Survival Data | Stata Textbook Examples
Table 2.1, Table 2.2, and Figure 2.1 on pages 17, 20, and 21. The lean1 scheme is used for the graphs on this page. To download this Stata scheme, use…
Read More
Applied Survival Analysis by Hosmer, Lemeshow and May Chapter 3: Regression Models for Survival Data | Stata Textbook Examples
Table 3.1 on page 78 using the actg320 dataset. use https://stats.idre.ucla.edu/stat/examples/asa2/actg320, clear stset time, fail(censor) stcox tx, nohr failure _d: censor analysis time _t: time Iteration 0: log likelihood =…
Read More
Applied Survival Analysis by Hosmer, Lemeshow and May Chapter 4: Interpretation of a Fitted Proportional Hazards Regression Model | Stata Textbook Examples
Table 4.2 on page 97 using the whas100 dataset. use https://stats.idre.ucla.edu/stat/examples/asa2/whas100, clear stset foltime, fail(folstatus) stcox gender, nohr failure _d: folstatus analysis time _t: foltime Iteration 0: log likelihood =…
Read More
Applied Survival Analysis by Hosmer, Lemeshow and May Chapter 5: Model Development | Stata Textbook Examples
Table 5.1 on page 142 using the whas500 data. For each variable, we run separate tests. The numbers seen in the table have been italicized in the output shown here….
Read More
Applied Survival Analysis by Hosmer, Lemeshow and May Chapter 6: Assessment of Model Adequacy | Stata Textbook Examples
Table 6.1 on page 180 using the whas500 data. To generate the score tests and global tests in this table, we will first run a Cox regression with the indicated…
Read More
Applied Survival Analysis by Hosmer, Lemeshow and May Chapter 7: Extensions of the Proportional Hazards Model | Stata Textbook Examples
Table 7.1 on page 211. use https://stats.idre.ucla.edu/stat/examples/asa2/actg320, clear stset time, fail(censor) failure event: censor != 0 & censor < . obs. time interval: (0, time] exit on or before: failure...
Read More
