getChi: Total Chi-squared distance

Description Usage Arguments Value Source Examples

View source: R/internalValidation.R

Description

Computes the 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}

Usage

1
getChi(design_weights, simulated_weights)

Arguments

design_weights

weights of the survey

simulated_weights

simulated weights

Value

chi-squared distance

Source

Rahman, A. (2009). Small Area Estimation Through Spatial Microsimulation Models. In 2nd International Microsimulation Association Conference. Ottawa and Canada. http://www.natsem.canberra.edu.au/publications/?publication=small-area-estimation-through-spatial-microsimulation-models-some-methodolgical-issues

Examples

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

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