_GRPOS: Stata module to identify observations with at least n positive values
Fred Wolfe ()
Statistical Software Components from Boston College Department of Economics
For egen newvar = rpos(varlist), newvar is 1 if any of the values in varlist are not missing and not 0, else 0. The default number of positive values to be found is 1, but this can be set with Minpos(). The greatest value to be considered to be missing is 0, but may be set (e.g. -1, 2, etc) by Lowlim(). This program was written for the specific case when respondents in surveys answer some, but not all, of a series of questions, and it is desired to make inferences based on some of the answers. For example, If the respondent does not answer the question: Have you had cancer, but does answer 'What year did this occur' or other questions, then it is reasonable to assume 'have you had cancer' is also true.
Requires: Stata version 6.0
Keywords: data; handling (search for similar items in EconPapers)
Note: This module may be installed from within Stata by typing "ssc install _grpos". 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/_/_grpos.ado program code (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: http://EconPapers.repec.org/RePEc:boc:bocode:s396201
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.
Series data maintained by Christopher F Baum ().