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]

st: RE: Exclude some observations from a sample in a regression


From   "Kieran McCaul" <[email protected]>
To   <[email protected]>
Subject   st: RE: Exclude some observations from a sample in a regression
Date   Wed, 7 Apr 2010 06:24:17 +0800

...

if x is your binary variable then

regress depvar varlist if x!=1



-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Claude
Francoeur
Sent: Wednesday, 7 April 2010 6:15 AM
To: [email protected] >> "[email protected]"
Subject: st: Exclude some observations from a sample in a regression

Hello,

Doing a regression, I would like to exclude a series of observations 
that are identified with a binary variable (=1). Could you let me know 
what the syntax would be, if it's doable?

Thank you.

Claude


 


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