Abstract:
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.
Language: Stata Requires: Stata version 6.0 Keywords:data; handling (search for similar items in EconPapers) Date: Written 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.
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 ().
This site is part of RePEc
and all the data displayed here is part of the RePEc data set.
Is your work missing from RePEc? Here is how to
contribute.
Questions or problems? Check the EconPapers FAQ or send mail to .