get_summary: Summarize the descriptive statistics across strata from a...

Description Usage Arguments Value Author(s) Examples

View source: R/get_summary.R

Description

S3 method for extracting descriptive statistics across strata. No default method is available at the moment.

Usage

1
2
3
4
5
6
7
8
get_summary(x, ...)

## S3 method for class 'survfit'
get_summary(
  survfit_object,
  statlist = c("strata", "records", "events", "median", "LCL", "UCL", "CI"),
  ...
)

Arguments

x

S3 object

...

other arguments passed on to the method

survfit_object

An object of class 'survfit'

statlist

Character vector containing the desired information to be displayed. The order of the arguments determines the order in which they are displayed in the final result. Default is the strata ("strata"), number of subjects ("records"), number of events ("events"), the median survival time ("median"), the Confidence Interval ("CI"), the Lower Confidence Limit ("UCL") and the Upper Confidence Limit ("UCL").

Value

A tibble with summary measures for the Overall Survival Across Strata

Author(s)

Pelagia Alexandra Papadopoulou

Examples

1
2
3
4
5
6
7
library(survival) 
library(dplyr)
library(tidyr)

survfit_object <- survival::survfit(data = adtte, Surv(AVAL, 1-CNSR) ~ TRTP)
get_summary(survfit_object)
 

visR-sandbox/visR-survival documentation built on Sept. 18, 2020, 6:21 p.m.