Download Document - Statistical Solutions

Transcript
SOLAS 4.0
Appendix F
Appendix F: Mahalanobis Distance
Multiple Imputation
MA HA LA N OB I S D IS TA NC E M U L T IP L E I M PU TA T IO N
C E NTR E V A R I A B LE
US E C C LO S ES T M A TC H IN G C A S ES
US E D % C L O SE ST MA TC H IN G C A S ES
Mahalanobis Distance Multiple Imputation
For each case containing a missing value the Mahalanobis Distance DM between that case and all other cases within
the dataset, (or group, if a grouping variable has been used) is calculated. The distance is calculated using covariates
specified where y is the vector of the covariates for the case with the missing value and xi is the vector for the ith
fully observed case in the dataset.
DM xi , y  
xi  y T S 1 xi  y 
S is the covariance matrix for the set of covariates being used in the calculation of the Mahalanobis distance.
Centre Variable
When calculating the Mahalanobis Distance, the covariance matrix used is a weighted average taken across the
different levels of the Centre Variable. For instance, assume we are calculating the MD between two cases (x and y).
If there are three levels of the Centre Variable then when calculating the Mahalanobis Distance, DM the following
Covariance matrix (S) would be used:
S
 Aa  1  Bb  1  C c  1
a  b  c   3
A, B and C are the three covariance matrices from within each of the three levels of the Centre Variable
a, b and c are the numbers of cases within each level of the Centre Variable
Use c Closest Matching Cases
Once the Mahalanobis Distances have been calculated the c cases that have the shortest distance from the case to be
imputed are used as the donor pool.
Use d% Closest Matching Cases
The same as for “c Closest Matching Cases”, where c is equal to [(d/100)*nobs], and where nobs is equal to the
number of observed values of y. There must be at least two values in each sub-group.
Imputation User Manual 62