survtime_sum: Function to nicely display survival time summaries at...

Description Usage Arguments

View source: R/main.R

Description

Function to nicely display survival time summaries at discrete times

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
survtime_sum(
  data,
  time,
  status,
  group,
  survtimes,
  survtimeunit,
  grpLabel = "Group",
  survtimesLbls = NULL,
  digits = 2,
  caption = NULL,
  tblOnly = FALSE,
  showN = FALSE
)

Arguments

data

datafrmae

time

survival time

status

indication of censored or observed data

group

the variable to group observations by

survtimes

numeric vector specifying the times to calculate survival at

survtimeunit

the unit of time that should be indicated in the tables (days, years, etc)

grpLabel

character value describing the grouping variable

survtimesLbls

if supplied, a vector the same length as survtimes with descriptions (useful for displaying years with data provided in months)

digits

the number of digitis to display

caption

table caption

tblOnly

should a dataframe or a formatted object be returned

showN

should the sample sizes be displayed


Avery-Lisa/myReportRx documentation built on May 23, 2021, 2:30 a.m.