sstable.baseline: Create baseline table

Description Usage Arguments Value

View source: R/sstable.R

Description

A function to create a simple summary baseline table.

Usage

1
2
3
4
5
6
sstable.baseline(formula, data, bycol = TRUE, pooledGroup = FALSE,
  statistics = "med.IQR", continuous = NA, fullfreq = TRUE,
  digits = 1, test = FALSE, pdigits = 3, pcutoff = 1e-04,
  chisq.test = FALSE, correct = FALSE, simulate.p.value = FALSE,
  B = 2000, workspace = 1e+06, hybrid = FALSE, footer = NULL,
  flextable = FALSE, bg = "#F2EFEE")

Arguments

formula

a formula specifies variables for rows, variable for column and third-dimension variable.

data

a data frame to derive baseline table from.

bycol

a logical value specifies whether the summary will be by column or by row.

pooledGroup

a logical value specifies whether to pool all subgroups of column variable.

statistics

a character specifies summary statistics for continuous row variables.

continuous

a logical vector specifies whether each row variables is continuous or categorical.

digits

a number specifies number of significant digits for numeric statistics.

test

a logical value specifies whether a statistical test will be performed to compare between treatment arms.

pdigits

a number specifies number of significant digits for p value.

pcutoff

a number specifies threshold value of p value to be displayed as "< pcutoff".

chisq.test

a logical value specifies whether Chi-squared test or Fisher's exact test will be used to compare between treatment arms.

correct

a parameter for chisq.test().

simulate.p.value

a parameter for chisq.test() and fisher.test().

B

a parameter for chisq.test() and fisher.test().

workspace

a parameter for fisher.test().

hybrid

a parameter for fisher.test().

footer

a vector of strings to be used as footnote of table.

flextable

a logical value specifies whether output will be a flextable-type table.

bg

a character specifies color of the odd rows in the body of flextable-type table.

Value

a flextable-type table or a list with values/headers/footers


lampk/C306 documentation built on Sept. 11, 2019, 8:03 a.m.