deff_calc {pollster} | R Documentation |
deff_calc
returns a single number
deff_calc(w)
w |
a vector of weights |
This function returns the design effect of a given sample using the formula length(w)*sum(w^2)/(sum(w)^2). It is designed for use in the moe family of functions. If any weights are equal to 0, they are removed prior to calculation.
A number
deff_calc(illinois$weight)