Statalist


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

st: RE: How to keep track on observations used in the model


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: RE: How to keep track on observations used in the model
Date   Sun, 9 Aug 2009 21:50:06 +0200

<>

It is not a command as such, rather a function: -e(sample)- If you type
-eret li- after estimation, you can see it at the bottom of the resulting
output. It is swept away by the next -ereturn - command, so make it
permanent by typing

-gen byte used=e(sample)-

which allows you to condition on -if used- for any subsequent analysis...

HTH
Martin

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Supnithadnaporn,
Anupit
Sent: Sonntag, 9. August 2009 20:04
To: statalist
Subject: st: How to keep track on observations used in the model

Dear Stata List Users,

When I run several logit models, Stata drops 176 observations with the
warning
"varX != 0 predicts failure perfectly". I want to run the models using the
same
set of observations.

How would I know which observations that Stata drops?
Does Stata have some command to track or keep the observations that used in
the
last regression? 

Thank you,
Anupit


-- 
Anupit Supnithadnaporn
PhD Candidate
School of Public Policy
Georgia Institute of Technology
D.M.Smith Building TPAC Room 018
685 Cherry Street
Atlanta GA 30332


*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index