powered by
Formatted Analysis Function For Proportion Confidence Interval for Logical.
a_proportion_ci_logical(x, .alt_df, conf_level, method, formats)
The rtables::rcell() result.
rtables::rcell()
(logical) including binary response values.
logical
(data.frame) alternative data frame used for denominator calculation.
data.frame
(numeric) confidence level for the confidence interval.
numeric
(string) please see tern::s_proportion() for possible methods.
string
tern::s_proportion()
(list) including element prop_ci with the required format. Note that the value is in percent already.
list
prop_ci
a_proportion_ci_logical( x = DM$SEX == "F", .alt_df = DM, conf_level = 0.95, formats = list(prop_ci = jjcsformat_xx("xx.xx% - xx.xx%")), method = "wald" )
Run the code above in your browser using DataLab