deff_calc: Calculate the design effect of a sample

Description Usage Arguments Details Value Examples

View source: R/DesignEffectAndMOE.R

Description

deff_calc returns a single number

Usage

1

Arguments

w

a vector of weights

Details

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.

Value

A number

Examples

1

pollster documentation built on Aug. 25, 2020, 5:08 p.m.