Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Mark observations with missing data


From   daniel klein <[email protected]>
To   [email protected]
Subject   Re: st: Mark observations with missing data
Date   Fri, 6 Jan 2012 20:04:03 +0100

One (slow) way to get an indicator for your regression sample is to
simply run your regression model and use e(sample) as in

reg <your varlist>
<whatever command> if e(sample)

But see -help mark- for the preferred way to mark your sample.

Best
Daniel

--
But I would like to keep all observations and just mark the ones with
missing observations in a given -varlist-. This way with an -if-
statement I can find summary statistics for the same data that I will
later use in regressions.
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index