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: AW: Exclude some observations from a sample in a regression


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: AW: Exclude some observations from a sample in a regression
Date   Wed, 7 Apr 2010 09:08:12 +0200

<> 

In the case of a binary variable, you could use the shortcuts


*************
sysuse auto, clear
regress price weight length if foreign
regress price weight length if !foreign
*************

to include all foreign (first case) or domestic (second case) cars.


HTH
Martin

-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Claude
Francoeur
Gesendet: Mittwoch, 7. April 2010 00:15
An: [email protected] >> "[email protected]"
Betreff: 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