EconPapers    
Economics at your fingertips  
 

NSCALE: Stata module to scale data

JeongHoon Min ()
Additional contact information
JeongHoon Min: Sogang University

Statistical Software Components from Boston College Department of Economics

Abstract: nscale provides a convenient way to recode variables to lie between 0 and 1 via dividing var-min(var) by max(var)-min(var). nscale can recode many variables at once and has options gen() and pre() which work in the similar manner as Stata’s default command recode does. It is also possible to store transformed values in existing variables with option nopost. nscale can set specific value or interval to missing (.) as well. For example, if a survey question q1 coded DK as 98 and miscellaneous as 99 and you want to exclude those values from analysis, just type: nscale q1 , m(98) up. Then nscale sets all observations whose value is greater than or equal to 98 to missing (.). The option down combined with option m(#) works similarly. Moreover, nscale does reverse coding with option r and tabulates new variables with option t.

Language: Stata
Requires: Stata version 10.1
Keywords: data management; scaling (search for similar items in EconPapers)
Date: 2019-07-19, Revised 2019-08-22
Note: This module should be installed from within Stata by typing "ssc install nscale". 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:

Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/n/nscale.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/n/nscale.sthlp help file (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: https://EconPapers.repec.org/RePEc:boc:bocode:s458675

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 Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2025-03-30
Handle: RePEc:boc:bocode:s458675