sstable.ae: Create an adverse event summary table

Description Usage Arguments Value

View source: R/sstable.R

Description

A function to create a simple adverse event summary table.

Usage

1
2
3
4
5
sstable.ae(ae_data, fullid_data, id.var, aetype.var, grade.var = NULL,
  arm.var, digits = 0, test = TRUE, pdigits = 3, pcutoff = 0.001,
  chisq.test = FALSE, correct = FALSE, simulate.p.value = FALSE,
  B = 2000, workspace = 1e+06, hybrid = FALSE, footer = NULL,
  flextable = TRUE, bg = "#F2EFEE")

Arguments

ae_data

a data frame contains adverse event data.

fullid_data

a data frame contains treatment arm data of all participants (not just those had adverse event).

id.var

a character specifies name of study id variable (exists in both adverse event data and treatment arm data).

aetype.var

a character specifies name of adverse event type variable (exists in adverse event data).

grade.var

a character specifies name of adverse event grade variable (exists in adverse event data).

arm.var

a character specifies name of treatment arm variable (exists in treatment arm data).

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.