EconPapers    
Economics at your fingertips  
 

ROBSCALE: RATS module to compute robust alternative to standard deviation

Eric Blankmeyer ()
Additional contact information
Eric Blankmeyer: Texas State University

Statistical Software Components from Boston College Department of Economics

Abstract: robscale.src computes a robust alternative to the standard deviation as a measure of scale (dispersion). The standard deviation is easily distorted by outliers and may therefore be quite misleading. robscale.src computes the Qn statistic of Rousseeuuw and Croux, which is very robust and also has good efficiency (relative to the standard deviation) when the data are in fact uncontaminated Gaussian random variables. (P. J. Rousseeuw and C. Croux, "Alternatives to the median absolute deviation," Journal of the American Statistical Association, Dec 1993, vol. 88, no. 424, pp. 1273-1283). Specifically, if the series x contains n observations, then there are n(n-1)/2 differences of the form abs( x(i)-x(j) ), i < j. when these differences are ranked, Qn is approximately the 25th percentile. the cost of computing Qn grows rapidly as n increases, but the Rousseeuw-Croux algorithm is very fast and needs relatively little computer memory and disk space. myseries is the univariate data from which Qn is to be computed. the first observation is nbeg and the last observation is nend.

Language: RATS
Keywords: robust; estimation (search for similar items in EconPapers)
Date: 1999-03-25

Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/r/robscale.src program code (text/plain)

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

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: http://EconPapers.repec.org/RePEc:boc:bocode:r932501

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 2009-11-23
Handle: RePEc:boc:bocode:r932501