Although the title says “Applied”, this book has a fair amount of mathematics in it, which helps you understand why certain approaches work well. The sample outputs for this book are reproduced in several different software programs at the UCLA Institute for Digital Research and Education. Continue reading

# Tag Archives: Survival analysis

# Recommended: Interval regression | R data analysis examples

This page shows R code to handle the tricky data sets where the response is known to be inside some interval. Continue reading

# Recommended: Interval censored data analysis

Michael Fay gave a short course on interval censored data at the 2010 useR! meeting. The slides from this short course provide a nice overview of the complexities of this type of data. Continue reading

# Recommended: Adjusted survival curves

This is a nice overview of how to use R to adjust survival curves in an observational study. It covers weighting and modeling with covariates and criticizes several approaches. Continue reading

# Recommended: Textbook Examples Applied Survival Analysis

I’m teaching an online workshop for The Analysis Factor on survival analysis. It’s not announced yet, and I have a LOT of work to do before it is ready. One thing that will save me time is that I am taking many of my examples from the excellent textbook, Applied Survival Analysis Second Edition. One nice perk of this book is that the helpful folks at UCLA have taken every textbook example, and written up code (with comments!) to reproduce the book’s results. With the exception of a few advanced methods in later chapters, where only one or two software packages have the right capability, the code is written in parallel in R, SAS, SPSS, and Stata. They also have links to the raw data at the publishers website, and datasets stored in SAS format and SPSS format. How nice! Browse around and you’ll find software code for all the examples in other popular statistics textbooks as well.

Warning! The R examples look like they are from the first edition, not the second edition. A small nitpick for an otherwise very nice resource. Continue reading

# PMean: Some open source Kaplan Meier curves

I’m giving a talk on the Kaplan-Meier survival curve and wanted to show and interpret a few real examples from the open source literature. Continue reading

# PMean: Cox regression in R

I wanted to show a couple of Cox proportional hazards regression models in R for a talk I am giving for the R users group. Continue reading

# PMean: More Kaplan-Meier curves in R

I found a larger data set and wanted to show how you could use the Kaplan Meier curves as a preliminary screen of some categorical and continuous variables in a larger and more complex data set. Continue reading

# PMean: Kaplan-Meier curves in R

I am giving a talk about using R for survival analysis and I wanted to talk first about the Kaplan-Meier curve and how you might draw it in R. Continue reading