if (rlang::is_installed("modeldata")) withAutoprint({ # examplesIf
cog_ability <- modeldata::ad_data$Class
str(cog_ability)
test_res <- bin_prop_test(cog_ability)
translate(test_res)
}) # examplesIf> cog_ability <- modeldata::ad_data$Class
> str(cog_ability)
Factor w/ 2 levels "Impaired","Control": 2 2 2 2 2 1 2 2 2 1 ...
> test_res <- bin_prop_test(cog_ability)
> translate(test_res)
stats::binom.test(x = 91L, n = 333L, alternative = "two.sided",
p = 0.5)