The survfit function, when applied to the results of a Cox model, will give
the predicted survival curve for any particular combination of covariates in
the
model. You cannot get what you are asking for, i.e., distinct levels of X
while
ignoring Y, from survfit. What you need to do is
stephen,
Thanks for your help. I want to draw a plot which shows separate
survival curves for each category of X on the same plot(same set of
axes). Your code produces a separate curve for each combination of X
and Y but I don't want curves for combinations of X and Y since Y has
many levels and
i want to make survival plots for a coxph object using survfit
function. mod.phm is an object of coxph class which calculated results
using columns X and Y from the DataFrame. Both X and Y are
categorical. I want survival plots which shows a single line for each
of the categories of X i.e. '4' and
On Nov 13, 2007 5:53 AM, Shoaaib Mehmood [EMAIL PROTECTED] wrote:
i want to make survival plots for a coxph object using survfit
function. mod.phm is an object of coxph class which calculated results
using columns X and Y from the DataFrame. Both X and Y are
categorical. I want survival plots
4 matches
Mail list logo