getMChi: Mean Chi-squared distance

Description Usage Arguments Value Examples

View source: R/internalValidation.R

Description

Computes the mean Chi-squared distance between sample design weights and estimated new weights.

θ Chi_i = ∑_j^m \frac{≤ft(w_j \times d_j\right)^2 }{2d_j} \div m

Usage

1
getMChi(design_weights, simulated_weights, population_size)

Arguments

design_weights

weights of the survey

simulated_weights

simulated weights

Value

mean chi-squared distance

Examples

1
2
getMChi(10, 20, 5)
getMChi(30, 40, 5)

emunozh/testmsim documentation built on May 13, 2017, 6:06 p.m.