CV2: Stata module to calculate the coefficient of variation for variables
Lorenz Graf-Vlachy ()
Additional contact information
Lorenz Graf-Vlachy: University of Passau
Statistical Software Components from Boston College Department of Economics
cv2 automates the trivial task of calculating the coefficient of variation (CV) for each of a given list of variables. The CV is a measure of dispersion of a variable. It is defined as the variable's standard deviation divided by the mean. The CV is independent of the units of measurement and of the magnitude of the data. Consequently, it can be used to compare the variability of different variables. Of two variables, the variable with the smaller CV is less dispersed than the variable with the larger CV.
Requires: Stata version 9
Keywords: coefficient of variation; descriptive statstics (search for similar items in EconPapers)
Date: 2018-07-31, Revised 2022-03-15
Note: This module should be installed from within Stata by typing "ssc install cv2". The module is made available under terms of the GPL v3 (https://www.gnu.org/licenses/gpl-3.0.txt). Windows users should not attempt to download these files with a web browser.
References: Add references at CitEc
Citations: Track citations by RSS feed
Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/c/cv2.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/c/cv2.sthlp help file (text/plain)
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s458511
Ordering information: This software item can be ordered from
Access Statistics for this software item
More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().