getTAD: Total absolute distance (TAD)

Description Usage Arguments Value Examples

Description

Computes the total absolute distance between sample design weights and estimated new weights.

TAD = ∑_i^n ≤ft|∑_j^m w_{i,j} - pop_i\right|

Usage

1
getTAD(design_weights, simulated_weights)

Arguments

design_weights

weights of the survey

simulated_weights

simulated weights

Value

total absolute distance

Examples

1
2
getTAD(10, 20)
getTAD(30, 40)

emunozh/testmsim documentation built on May 16, 2019, 5:11 a.m.