makeSSTable: Create sample size table

Description Usage Arguments Value

View source: R/QCMemo_script.R

Description

The function makeSSTable creates the standard sample size table included in all QC memos (i.e., cross-tabulated by cohort, context, and research group).

Usage

1
2
3
4
5
6
makeSSTable(
  inputds,
  cohort_var = "cohort",
  context_var = "context",
  racode_var = "racode"
)

Arguments

inputds

A dataset with one row per unit (i.e. a Step 2 dataset).

cohort_var

The name of the cohort variable on inputds.

context_var

The name of the context variable on inputds.

racode_var

The name of the research group variable on inputds.

Value

A flextable object.


c-hill-mdrc/QCmemo documentation built on July 25, 2020, 12:48 a.m.