strat_dem_tbl: Create a stratified demographics table

Description Usage Arguments Value

View source: R/demographics_table.R

Description

Create a stratified demographics table

Usage

1
2
3
4
5
6
7
8
9
strat_dem_tbl(
  data,
  outcome,
  continuous.covariates = NULL,
  continuous.tests = "wilcox.test",
  categorical.covariates = NULL,
  categorical.tests = "likelihood.ratio.chi.square",
  strata.col = NULL
)

Arguments

data

A set of data with all covariates in separate columns and each row representing exactly 1 individual

outcome

Column containing indicating the primary outcome of interest (e.g. case/control or disease subtypes)

continuous.covariates

Columns containing continuous covariates of interest

continuous.tests

A vector of tests to run on the continuous covariates

categorical.covariates

Columns containing the categorical covariates of interest

categorical.tests

A vector of tests to run on categorical covariates

strata.col

Column containing the categories by which the data will be stratified

Value

A demographics table in the format typically implemented by the iMAGE study.


graggsd/sgdemtbl documentation built on April 16, 2020, 9:40 p.m.