Displaying 1 result from an estimated 1 matches for "addfit".
Did you mean:
add_it
2008 Sep 30
0
Hazard curves
...particular time point is not very
interesting: it will be h(t, age) = k exp(coefficient * age). This does not
reflect the data in any way, just your decision that age would be a linear term
in the model. If you want to explore the effect of age, then fit the
generalized additive Cox model
addfit <- coxph(Surv(rem.Remtime,rem.Rcens)~ pspline(all.age), nearma)
temp <- predict(addfit, type='terms', se=TRUE)
matplot(nearma$all.age, exp(cbind(temp$fit,
temp$fit - 2* temp$se.fit,
temp$fit + 2* temp$se.f...