Hi Statalisters,

I want to compare the distributional fit of predicted values with the original data. The user written Stata command 'ppplot' by Nicholas J. Cox plots the percentiles of the predictions with the percentiles of the original data. A diagonal line is a perfect distributional fit. In 'Hinloopen, Jeroen; van Marrewijk, Charles (2005) : Comparing Distributions: The Harmonic Mass Index, Tinbergen Institute Discussion Paper, No. 05-122/1' the authors introduce the harmonic mass index which measures the area between the diagonal (e.g. the perfect fit) and the P-P-plot. Besides the graph I want to incorporate this measure in my study, but I am fairly new to Stata and haven't figured out a way how to calculate the HMI.

How can I calculate this measure and are there others measures helping to compare the distributional fit of predictions and original data (besides the ppplot and ksmirnov)?

Kind regards,

Steffen