petsum: Print LaTeX event time summary

Description Usage Arguments Examples

View source: R/main.R

Description

Wrapper for the etsum function that prints paragraphs of text in LaTeX

Usage

1
petsum(data, response, group = 1, times = c(12, 14), units = "months")

Arguments

data

dataframe containing data

response

character vector with names of columns to use for response

group

string specifiying the column name of stratification variable

times

numeric vector of times you want survival time provbabilities for.

units

string indicating the unit of time. Use lower case and plural.

Examples

1
2
3
4
5
require(survival)
lung$sex<-factor(lung$sex)
petsum(lung,c("time","status"),"sex")
petsum(lung,c("time","status"))
petsum(lung,c("time","status"),"sex",c(1,2,3),"months")

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