Learn R Programming

vdra (version 1.0.0)

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

Description

Plots a survivial curve as specified by survfitDistributed object.

Usage

# S3 method for 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

Run this code
# NOT RUN {
  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)
# }

Run the code above in your browser using DataLab