.strata_normal_quantile | R Documentation |
This function wraps the estimation of stratified percentiles when we assume the approximation for large numbers. This is necessary only in the case proportions for each strata are unequal.
.strata_normal_quantile(vars, weights, conf.level)
weights |
( |
conf.level |
( |
Stratified quantile.
proportion_ci_strat_wilson()
strata_data <- table(data.frame(
"f1" = sample(c(TRUE, FALSE), 100, TRUE),
"f2" = sample(c("x", "y", "z"), 100, TRUE),
stringsAsFactors = TRUE
))
ns <- colSums(strata_data)
ests <- strata_data["TRUE", ] / ns
vars <- ests * (1 - ests) / ns
weights <- rep(1 / length(ns), length(ns))
cardx:::.strata_normal_quantile(vars, weights, 0.95)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.