Learn R Programming

PSsurvival (version 0.2.0)

print.weightedKM: Print Method for Weighted Kaplan-Meier Estimates

Description

Prints a summary of weighted Kaplan-Meier survival estimates.

Usage

# S3 method for weightedKM
print(x, print.digits = 3, print.rows = 10, ...)

Value

Invisibly returns the input object x.

Arguments

x

An object of class "weightedKM" from weightedKM().

print.digits

Number of decimal places for printed output. Default 3.

print.rows

Number of rows to print for each treatment group. Default 10.

...

Additional arguments (currently unused).

Examples

Run this code
# \donttest{
data(simdata_bin)
result <- weightedKM(
  data = simdata_bin,
  treatment_var = "Z",
  time_var = "time",
  event_var = "event",
  weight_method = "none"
)
print(result)
# }

Run the code above in your browser using DataLab