plot.survfitDistributed: Plotting Survival Curves for Vertical Distributed Cox...

Description Usage Arguments Value See Also Examples

View source: R/vertical_utilities.R

Description

Plots a survivial curve as specified by survfitDistributed object.

Usage

1
2
  ## S3 method for class 'survfitDistributed'
plot(x, merge = FALSE, ...)

Arguments

x

a survfitDistributed object.

merge

logical. It TRUE, plots all strata of the survival curve on one plot. If FALSE, plots all strata in different plots.

...

common graphical parameters (not fully implemented).

Value

No return value.

See Also

survfitDistributed

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
  sfit = survfitDistributed(vdra_fit_cox_A)
  plot(sfit)

  # From Data Partner 1
  sfit = survfitDistributed(vdra_fit_cox_A, ~Exposure, data = vdra_data[, c(3:4, 5:7)])
  plot(sfit)
  plot(sfit, merge = FALSE)

  # From Data Partner 2
  sfit = survfitDistributed(vdra_fit_cox_B, ~Race + Sex, data = vdra_data[, 8:11])
  plot(sfit, merge = FALSE)

vdra documentation built on Sept. 9, 2021, 9:10 a.m.