tableoneway: Produces a tbl1w object, which contains summary statistics...

Description Usage Arguments Value

View source: R/tidy.table.one.R

Description

Produces a tbl1w object, which contains summary statistics without grouping or bivariate tests.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
tableoneway(
  df,
  summaryTypes = NULL,
  d = 1,
  p.digits = 3,
  fisher.simulate.p = FALSE,
  trunc_binary = TRUE,
  lbl = "",
  caption = ""
)

Arguments

df

A data frame or tibble with Hmisc-brand labels.

d

Number of significant digits to report in (non-p-value) numbers in the tableone object.

p.digits

Number of significant digits to report in p-values.

fisher.simulate.p

If TRUE use simulated p-values for Fisher's exact test. Default is FALSE.

trunc_binary

Logical. If TRUE print only one row for categorical variables with 2 levels. If FALSE, binary variables are printed on two rows. Default is TRUE. Alternatively, supply a named list of logicals indicating which variables should be printed on one row. Unnamed variables in the list will be printed on one row.

lbl

LaTeX label to be passed to tx() for labeling the table in a LaTeX document.

caption

Text to be passed to tx() or md() to caption the table.

testTypes

A vector of length nrow(df) containing "t" for a t-test or "w" for a Wilcoxon rank-sum test; applies only to continuous variables. Leave NULL to allow the function to choose for you based on the distance between the mean and median.

Value

A tbl1w object that can be formatted by tx() or md().


trahelyk/trahelyk_pkg documentation built on June 14, 2021, 9:25 p.m.