The easiest way to deal with this is to run a regression; then in subsequent commends use -, if e(sample)- thereafter. If you need a more permanent approach (since -e(sample)- is recomputed after each run) use -generate presence=e(sample), which will produce a dummy coded one for all cases in the prior regression model and zero otherwise.
Dave Jacobs
-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Claude Francoeur
Sent: Wednesday, January 02, 2013 12:15 PM
To: statalist@hsphsun2.harvard.edu
Subject: st: Analyse variables used in a regression
Hello,
The dataset I am using contains several missing values. What would be the proper command(s) to analyse the data actually used in my regression. For example, I would like to produce descriptive tables to see how the subset that is used to perfom the regression is distributed among countries and industries.
Thanks,
Claude
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/