Description Usage Arguments Details Value
Weighted means with confidence intervals for groups
1 2 | summary_statistic_mode_select_one(dependent.var, independent.var, design,
confidence_level = 0.95)
|
dependent.var |
string with the column name in 'data' of the dependent variable. Should be a select_one or a select_multiple. |
independent.var |
string with the column name in ‘data' of the independent (group) variable. Should be a ’select one' |
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) |
This function takes the design object and the name of your dependent variable, and returns the most frequent answer for each category in independent.var
A table in long format of the results, with the column names dependent.var, dependent.var.value (=NA), independent.var, independent.var.value, numbers (= mean), se, min and max.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.