Description Usage Arguments Value Examples
Create a table estimating the percentage of "yes" replies to a yes/no survey question and the margin of error
1 2 | simple_binary_tab(dat, binary_outcome, na.rm = T, ci_level = 0.95,
vartype = NULL)
|
dat |
A tbl_svy object created using the srvyr package |
binary_outcome |
The name of an outcome variable in |
na.rm |
A logical indicating whether to drop NAs from the outcome. |
ci_level |
A numeric indicating the confidence level. Default it 0.95 |
vartype |
A string indicting how to display the variance.
See |
tibble with up to three numeric columns showing point estimate, and uncertainty (e.g., variance or upper and lower bounds of a confidence interval)
1 2 3 4 5 | data(ca_school_tbl_svy)
ca_school_tbl_svy %>% simple_binary_tab(year.round.sch, vartype = "ci")
rm(ca_school_tbl_svy)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.