Skip to contents

Pre-defined format specifications for common clinical table patterns.

Usage

fmt_n_pct()

fmt_mean_sd()

fmt_median_range()

fmt_ci()

fmt_pvalue(threshold = 0.001)

Arguments

threshold

Numeric threshold below which to display "<threshold"

Functions

  • fmt_n_pct(): Count with percentage: "n (xx.x%)"

  • fmt_mean_sd(): Mean with SD: "xx.x (xx.xx)"

  • fmt_median_range(): Median with range: "xx.x (xx.x, xx.x)"

  • fmt_ci(): Confidence interval: "xx.xx (xx.xx, xx.xx)"

  • fmt_pvalue(): P-value with significance threshold