EconPapers    
Economics at your fingertips  
 

VALIDLY: Stata module to correct Stata’s handling of missing values in logical and relational expressions

Kenneth Macdonald ()
Additional contact information
Kenneth Macdonald: Nuffield College, Oxford University

Statistical Software Components from Boston College Department of Economics

Abstract: Think of "validly" as a modifier which corrects errors in certain commands. Stata handles missing values intelligently within algebraic operations (so the sum of, say, 4 and an unknown number, is correctly deemed to be unknown). This intelligence does not extend to logical and relational operations. The conjunction of two unknown values is, for example, deemed by Stata to be a known true statement. There are workarounds (which have to be more complex than they are usually presented as being) but they make life unnecessarily difficult when analysing real data. To remedy this, validly generate has the functionality of generate, but, in contrast to Stata's generate, behaves appropriately when missing values are encountered within logical or relational expressions. Likewise validly replace, validly assert, validly global, validly reg... if ...(works for any other conditional command).

Language: Stata
Requires: Stata version 10
Keywords: conditional; missing values; logical expressions (search for similar items in EconPapers)
Date: 2013-08-10
Note: This module should be installed from within Stata by typing "ssc install validly". 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/v/validly.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/v/validly.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/v/vy.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/v/vy.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/v/validate_validly.do sample code 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:s457678

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:s457678