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
Richard Herron <[email protected]>
To
[email protected]
Subject
Re: st: Mark observations with missing data
Date
Fri, 6 Jan 2012 15:08:21 -0500
More good lessons. Thank you, Nick and Daniel!
On Fri, Jan 6, 2012 at 14:04, daniel klein
<[email protected]> wrote:
> 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/
*
* 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/