Displaying 1 result from an estimated 1 matches for "ageset".
Did you mean:
agesen
2008 Sep 30
0
Hazard curves
...think
plot(nearma$all.age,coxfita$linear.predictors) is quite right.
Thank you for your help,
Laura
--- End included
There is not a simple plot: hazard is a function of both time and age, so will
be a 2-d surface.
A common plan is to plot the predicted survival for a small set of ages.
ageset <- c( 40, 55, 70)
curves <- survfit(coxfita, newdata= data.frame(all.age = ageset))
plot(curves, col=1:3)
This will give a plot with 3 predicted survival curves, for ages 40, 55 and 70.
The plot of hazard vs age at any particular time point is not very
interesting: it will be h(t,...