Learn R Programming

reportRx (version 1.0)

puvsum: Print univariate summary LaTeX table

Description

Returns a LaTeX table of the univariate summary

Usage

puvsum(response, covs, data, type = NULL, strata = 1, TeX = F)

Arguments

response
string vector with name of response
covs
character vector with the names of columns to fit univariate models to
data
dataframe containing data
type
string indicating he type of univariate model to fit. The function will try and guess what type you want based on your response. If you want to override this you can manually specify the type. Options in clude "linear", "logistic", "coxph", "crr", "boxcox","logistic"
strata
character vector of covariates to stratify by. Only used for coxph and crr
TeX
boolean indicating if you want to be able to view extra long tables in the LaTeX pdf. If TeX is T then the table will not convert properly to docx