Statalist


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

st: drop command & missing values


From   "Francesco Trivieri" <[email protected]>
To   <[email protected]>
Subject   st: drop command & missing values
Date   Mon, 12 Oct 2009 11:48:46 +0200

dear users,
when I drop some observations by writing:
1) drop if x>123
Stata drops also the missing values of the x variable. When I use the following
2)  drop if x>123 & x!=.
Stata does not drop the missing values
As missing values are discarded in any estimations, Stata should consider the same obsevations whather command I use (1 or 2). By constrast, the number of obsevations is much smaller when I run a regression after using the command 1)
thank you
Francesco
*
*   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