Table 11.1, page 360 and Figure 11.1, page 359. Note: The noadjust option suppresses the actuarial adjustment. use https://stats.idre.ucla.edu/stat/stata/examples/alda/data/firstsex, clear stset time, failure(event) sts generate s = s, by(pt) sts…
Read More
Search Results for: stata
Applied Longitudinal Data Analysis: Modeling Change and Event Occurrence by Judith D. Singer and John B. Willett Chapter 12: Extending the Discrete-time Hazard Model | Stata Textbook Examples
Figure 12.1, page 414 and Table 12.2, page 413. This page has been updated using Stata 10. Notice that the sample size used in calculating the BIC is the number…
Read More
Applied Longitudinal Data Analysis: Modeling Change and Event Occurrence by Judith D. Singer and John B. Willett Chapter 13: Describing Continuous-time Event Occurrence Data | Stata Textbook Examples
Table 13.1, page 471. use https://stats.idre.ucla.edu/stat/stata/examples/alda/data/honking, clear sort seconds list seconds censor seconds censor 1. 1.41 1 2. 1.41 0 3. 1.51 0 4. 1.67 0 5. 1.68 0 6….
Read More
Applied Longitudinal Data Analysis: Modeling Change and Event Occurrenceby Judith D. Singer and John B. Willett Chapter 14: Fitting Cox regression models | Stata Textbook Examples
Figure 14.1, page 505. use https://stats.idre.ucla.edu/stat/stata/examples/alda/data/rearrest, clear gen event = ~censor stset months, failure(event) sts graph, by(personal) xtitle(“Months after release”) /// legend(ring(0) pos(2)) ylabel(,nogrid) sts graph, cumh by(personal) xtitle(“Months after…
Read More
Applied Longitudinal Data Analysis: Modeling Change and Event Occurrence by Judith D. Singer and John B. Willett Chapter 15: Extending the Cox Regression Model | Stata Textbook Examples
Table 15.1, page 548. use https://stats.idre.ucla.edu/stat/stata/examples/alda/data/firstcocaine, clear generate event = ~censor stset cokeage, failure(event) failure event: event ~= 0 & event ~= . obs. time interval: (0, cokeage] exit on…
Read More
Applied Longitudinal Data Analysis: Modeling Change and Event Occurrence by Judith D. Singer and John B. Willett Chapter 2: Exploring Longitudinal Data on Change | Stata Textbook Examples
Figure 2.1, page 18. use https://stats.idre.ucla.edu/stat/stata/examples/alda/data/tolerance, clear list id tol11 tol12 tol13 tol14 tol15 male exposure 1. 9 2.23 1.79 1.9 2.12 2.66 0 1.54 2. 45 1.12 1.45 1.45…
Read More
Applied Longitudinal Data Analysis: Modeling Change and Event Occurrenceby Judith D. Singer and John B. Willett Chapter 3: Introducing the Multilevel Model for Change | Stata Textbook Examples
Please note that the early_int data file (which is used in Chapter 3) is not included among the data files. This was done at the request of the researcher who…
Read More
Applied Longitudinal Data Analysis: Modeling Change and Event Occurrenceby Judith D. Singer and John B. Willett Chapter 4: Doing Data Analysis with the Multilevel Model for Change | Stata Textbook Examples
Figure 4.1, page 77 use https://stats.idre.ucla.edu/stat/stata/examples/alda/data/alcohol1_pp graph twoway (scatter alcuse age) (lfit alcuse age) /// if inlist(id,4,14,23,32,41,56,65,82), by(id, cols(4)) Figure 4.2, page 79 * Note: the book randomly samples 32…
Read More
Applied Longitudinal Data Analysis: Modeling Change and Event Occurrenceby Judith D. Singer and John B. Willett Chapter 5: Treating TIME More Flexibly | Stata Textbook Examples
Table 5.1 on page 141 using reading_pp data use https://stats.idre.ucla.edu/stat/stata/examples/alda/data/reading_pp, clear list if inlist(id, 4, 27, 31, 33, 41, 49, 69, 77, 87) +————————————–+ | id wave agegrp age piat…
Read More
ExamplesApplied Longitudinal Data Analysis: Modeling Change and Event Occurrenceby Judith D. Singer and John B. Willett Chapter 6: Modeling Discontinuous and Nonlinear Change | Stata Textbook Examples
Table 6.1 on page 192 use https://stats.idre.ucla.edu/stat/stata/examples/alda/data/wages_pp clist id lnw exper ged postexp if inlist(id,206,2365,4384), noobs id lnw exper ged postexp 206 2.028 1.874 0 0 206 2.297 2.814 0…
Read More
