Re: [R] Survival dummy variables and some questions

From: Frank E Harrell Jr <>
Date: Tue 19 Jul 2005 - 02:13:50 EST

Stephen wrote:
> Hi 1. Right perhaps this should clarify. I would like to extract
> coefficeints for different levels of the IVs (covariate). So for
> instance, age of onset I would want Hazards etc for every 5 years and so
> on... The approach I took was to categorize the variables (e.g., age of
> onset) and then turn the resultant categorical variable into a factor as
> opposed to a variable... that is when the problems began.... An
> alternative approach to pulling out different values at different levels
> of the variable is what I seek. 2. I looked for the link, but can't

Your needs don't require categorization. You can request predicted values at any sequence of ages. If you want hazard ratios you can take differences in predicted log hazards and antilog them.


Frank E Harrell Jr   Professor and Chair           School of Medicine
                      Department of Biostatistics   Vanderbilt University

______________________________________________ mailing list
PLEASE do read the posting guide!
Received on Tue Jul 19 02:19:38 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:46 EST