s-news
[Top] [All Lists]

Estimating median survival from Cox model including categorical independ

To: <s-news@lists.biostat.wustl.edu>
Subject: Estimating median survival from Cox model including categorical independents
From: "Hunsicker, Lawrence" <lawrence-hunsicker@uiowa.edu>
Date: Tue, 11 Dec 2007 09:54:17 -0600
Thread-index: Acg8DhYS3wn3TgzpSHizgjX2jxcZmg==
Thread-topic: [S] Estimating median survival from Cox model including categorical independents

Greetings, all:

I would like to estimate predicted survival for patients adjusted for specific values for two independent variables, but using average characteristics for all of the other independent predictors.  I know that I can use the survfit() function to do this on the fitted Cox model, assuming that I enter the new data using the newdata=list() parameter.  The issue is how to enter data for the average patient when the covariate is categorical.  I suppose that I could do this entering the fraction of patients at each level of the categorical variable, after determining the parameterization by looking at contrasts(variable).  But is there an easier way that uses the mean values that must have been used by the survfit function to generate the values for the function when newdata is not given?  These values must be recorded somewhere.

Many thanks in advance for any help that you can give me.

Larry Hunsicker

<Prev in Thread] Current Thread [Next in Thread>