EconPapers    
Economics at your fingertips  
 

HANGROOT: Stata module creating a hanging rootogram comparing an empirical distribution to the best fitting theoretical distribution

Maarten L. Buis ()

Statistical Software Components from Boston College Department of Economics

Abstract: hangroot draws a hanging rootogram comparing the empirical distribution of a variable to the best fitting theoretical distribution. It is an alternative for histogram with the theoretical density function plotted on top. It differs from a histogram in two ways: 1) Instead of showing the freqencies it shows the square root of the frequencies. This way deviations in the tails, where the counts are small, become more visible. 2) The spikes or bars "hang" from the theoretical distribution instead of "standing" on the x-axis. The deviations are now shown as deviations from a horzontal line (y=0) instead of deviations from a curve (the density function). This makes it easier to spot patterns in the deviations.

Language: Stata
Requires: Stata version 8.2
Keywords: exploratory data analysis; model diagnostics (search for similar items in EconPapers)
Date: Written 2007-11-04
Note: This module may be installed from within Stata by typing "ssc install hangroot". Windows users should not attempt to download these files with a web browser.

Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/h/hangroot.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/h/hangroot.hlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/c/citybudget.dta sample data file (application/x-stata)
http://fmwww.bc.edu/repec/bocode/c/cavalry.dta sample data file (application/x-stata)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php

Access Statistics for this software item

More software in Statistical Software Components from Boston College Department of Economics
Address: Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA
Contact information at EDIRC.
Series data maintained by Christopher F Baum ().

 
Page updated 2008-10-05
Handle: RePEc:boc:bocode:s456886