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

View source: R/vertical_utilities.R

plot.survfitDistributedR Documentation

Plotting Survival Curves for Vertical Distributed Cox Regression

Description

Plots a survivial curve as specified by survfitDistributed object.

Usage

  ## 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

  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)

kentedegrees/vdra documentation built on June 12, 2025, 12:56 p.m.