Description Usage Arguments Value Examples
View source: R/calculate_deff.R
Takes a vector of weights and calculates the design effect, or the proportional increase in variance due to weighting. Calculated using the Kish (1965) approximation.
1 | calculate_deff(weight, include_zeroes = FALSE)
|
weight |
A vector of weights. Non-numeric weights will be coerced to numeric. |
include_zeroes |
Should zero weights be included when calculating |
A tibble containing the following columns:
n
The sample size
sd_wt
The standard deviation of the weights
deff
The Kish approximation of an overall survey design effect
ess
The effective sample size
moe
The design-adjusted margin of error at 95
1 | calculate_deff(dec13_excerpt$weight)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.