View source: R/DesignEffectAndMOE.R

deff_calc | 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)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.