phreg | R Documentation |
Fast Cox PH regression Robust variance is default variance with the summary.
phreg(formula, data, offset = NULL, weights = NULL, ...)
formula |
formula with 'Surv' outcome (see |
data |
data frame |
offset |
offsets for Cox model |
weights |
weights for Cox score equations |
... |
Additional arguments to lower level funtions |
influence functions (iid) will follow numerical order of given cluster variable so ordering after $id will give iid in order of data-set.
Klaus K. Holst, Thomas Scheike
data(TRACE)
dcut(TRACE) <- ~.
out1 <- phreg(Surv(time,status==9)~vf+chf+strata(wmicat.4),data=TRACE)
## robust standard errors default
summary(out1)
par(mfrow=c(1,2))
plot(out1)
## computing robust variance for baseline
rob1 <- robust.phreg(out1)
plot(rob1,se=TRUE,robust=TRUE)
## taking iid decomposition of regression parameters
betaiiid <- lava::iid(out1)
## making iid decomposition of baseline at a specific time-point
Aiiid <- iidBaseline(out1,time=30)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.