
Formatted Analysis Function For Proportion Confidence Interval for Logical
Source:R/proportions.R
a_proportion_ci_logical.RdFormatted Analysis Function For Proportion Confidence Interval for Logical
Arguments
- x
(
logical)
including binary response values.- .alt_df
(
data.frame)
alternative data frame used for denominator calculation.- conf_level
(
numeric)
confidence level for the confidence interval.- method
(
string)
please seetern::s_proportion()for possible methods.- formats
(
list)
including elementprop_ciwith the required format. Note that the value is in percent already.
Value
The rtables::rcell() result.
Examples
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"
)
#> rcell: 47.34% - 57.72%