notes Kaplan-Meir survival

notes Kaplan-Meir survival - Eco 572: Research methods in...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Eco 572: Research methods in Demography Kaplan-Meir Survival Stata has excellent facilities for survival analysis in continuous time, including the Kaplan-Meier estimator. I will illustrate the estimator using the Gehan data discussed in class. These are weeks before relapse of cancer patients in a control and a treated group (coded 1 and 2 respectively). . infile group weeks relapse using /// > http://data.princeton.edu/eco572/datasets/gehan.dat (42 observations read) . label define group 1 "Control" 2 "Treated" . label values group group The first thing you do in Stata is stset the data specifying the variable that represents time and the variable that distinguishes failures from censored cases: . stset weeks, fail(relapse) failure event: obs. time interval: (0, weeks] exit on or before: failure ------------------------------------------------------------------------------ 42 total obs. 0
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

notes Kaplan-Meir survival - Eco 572: Research methods in...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online