percent_with_confints_select_one: Weighted percentages with confidence intervals

Description Usage Arguments Details Value Examples

View source: R/summary_statistics.R

Description

Weighted percentages with confidence intervals

Usage

1
2
percent_with_confints_select_one(dependent.var, independent.var = NULL,
  design, na.rm = TRUE, confidence_level = 0.95)

Arguments

dependent.var

string with the column name in ‘data' of the dependent variable. Should be a ’select one'

independent.var

should be null ! For other functions: string with the column name in 'data' of the independent variable

design

the svy design object created using map_to_design or directly with svydesign

confidence_level

the confidence level to be used for confidence intervals (default: 0.95)

Details

this function takes the design object and the name of your dependent variable when this one is a select one. It calculates the weighted percentage for each category.

Value

A table in long format of the results, with the column names dependent.var, dependent.var.value, independent.var, independent.var.value, numbers, se, min and max.

Examples

1
## Not run: percent_with_confints_select_one("population_group", design)

mabafaba/hypegrammaR documentation built on Oct. 2, 2019, 11:33 a.m.