prop_by_weighted | R Documentation |
Compute weighted proportion by group for a logical variable
prop_by_weighted(design, var, by, ci.method = "beta")
design |
survey design [survey::svydesign()], see [design_weight()] |
var |
variable on which to compute frequency, must be a logical variable |
by |
grouping variable name to compute total on |
ci.method |
method to use to compute adjusted proportion confidence interval |
data.frame() with columns
group name of this column is the passed value to the 'by' parameter
Count of true values in each group
Weight sum of the true value in the group
Total weight in the group
Total count of non missing value in the group
Adjusted proportion on strata
Adjusted proportion lower bound of CI95%
Adjusted proportion upper bound of CI95%
Variable name
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.