Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: identifying set of cases analyzed


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: identifying set of cases analyzed
Date   Sun, 22 Apr 2012 14:43:04 +0100

Often documented, e.g. after model fitting you can go

gen used = e(sample)

Look for documentation on e(sample) and also

SJ-7-2  dm0030  . . . . . . . . . .  Stata tip 44: Get a handle on your sample
        . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  B. Jann
        Q2/07   SJ 7(2):266--267                                 (no commands)
        tip on how to keep track of the observations that make
        up your estimation sample


2012/4/22 Sebastián Daza <sebastian.daza@gmail.com>:

> I am doing some analysis with an unbalanced panel data. I also have
> some missing data in the covariates. Does anyone know how (easily) to
> create a flag variable indicating what cases I am using (e.g., a
> xtlogit model, re or fe) so that to use the same set of cases in
> several less complex models (models with fewer covariates)?

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index