excplot: Plotting the cumulative baseline excess hazard

Description Usage Arguments Author(s) Examples

View source: R/matchf.R

Description

Plotting the cumulative baselines excess hazard

Usage

1
2
3
4
excplot(x, se = FALSE, time = NULL, add = FALSE, ylim = NULL,
  lty = NULL, col = NULL, legend = TRUE,
  ylab = "Baseline cumulative excess hazard", polygon = TRUE,
  level = 0.95, stratas = NULL, relsurv = FALSE, hline = TRUE, ...)

Arguments

x

matchpropexc object

se

to include standard errors

time

to plot for specific time variables

add

to add to previous plot

ylim

to give ylim

lty

to specify lty of components

col

to specify col of components

legend

to specify col of components

ylab

to specify ylab

polygon

to get standard error in shaded form

level

of standard errors

stratas

wich strata to plot (number or vector between 0 and nstrata-1)

relsurv

set to FALSE. If TRUE relative survival curves are plotted.

hline

set to TRUE. An horizontal line is plotted (1 if relative survival, 0 if excess risk)

...

Additional arguments to lower level funtions

Author(s)

Cristina

Examples

1
2
3
4
5
6
7
8
9
dhaz<-sim.data.MatchH(nca=5000, ncont=5)
setdhaz<-compdata(Surv(time, status)~z+cc, data=dhaz, idControl = j, clust=id)
m <- matchpropexc(Surv(entry,exit,status)~strata(z)+cc,data=setdhaz)
excplot(m, se=TRUE, col=c("green","blue"), main="with polygon CI") 
excplot(m, se=TRUE, time=seq(0,30,1), main="at specific time-points") 
excplot(m, se=TRUE, relsurv=TRUE, main="relative surv.") 
excplot(m, se=TRUE, polygon=FALSE, main="with CI - no polygon") 
excplot(m, se=FALSE, main="No CI") 
excplot(m, se=TRUE, stratas=1, main="plot the second strata")

cribosch/matchsurv documentation built on Aug. 15, 2019, 11:55 a.m.