phreg: Fast Cox PH regression

Description Usage Arguments Author(s) Examples

View source: R/phreg.R

Description

Fast Cox PH regression Robust variance is default variance with the summary.

Usage

1

Arguments

formula

formula with 'Surv' outcome (see coxph)

data

data frame

offset

offsets for cox model

weights

weights for Cox score equations

...

Additional arguments to lower level funtions

Author(s)

Klaus K. Holst, Thomas Scheike

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
data(TRACE)
dcut(TRACE) <- ~.
out1 <- phreg(Surv(time,status==9)~vf+chf+strata(wmicat.4),data=TRACE)
## tracesim <- timereg::sim.cox(out1,1000)
## sout1 <- phreg(Surv(time,status==1)~vf+chf+strata(wmicat.4),data=tracesim)
## robust standard errors default 
summary(out1)

par(mfrow=c(1,3))
basehazplot.phreg(out1)
## basehazplot.phreg(sout1,se=TRUE)

## computing robust variance for baseline
rob1 <- robust.phreg(out1)
basehazplot.phreg(rob1,se=TRUE,robust=TRUE)

## making iid decomposition of regression parameters
betaiiid <- iid(out1)

mets documentation built on May 1, 2018, 1:05 a.m.