resp01_a_comp_stat_factor {junco} | R Documentation |
Formatted Analysis Function for Comparative Statistic in Response Tables (RESP01)
Description
This function applies to a factor
column called .var
from df
.
Usage
resp01_a_comp_stat_factor(df, .var, include, ...)
Arguments
df |
( |
.var |
( |
include |
( |
... |
see |
Value
The formatted result as rtables::rcell()
.
Examples
dm <- droplevels(subset(formatters::DM, SEX %in% c("F", "M")))
resp01_a_comp_stat_factor(
dm,
.var = "COUNTRY",
conf_level = 0.9,
include = c("USA", "CHN"),
arm = "SEX",
strata = "RACE",
stat = "comp_stat_ci",
method = list(comp_stat_ci = "or_cmh"),
formats = list(
comp_stat_ci = jjcsformat_xx("xx.xx (xx.xx - xx.xx)"),
pval = jjcsformat_pval_fct(0.05)
)
)
[Package junco version 0.1.1 Index]