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]

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


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: AW: RE: AW: Exclude some observations from a sample in a regression
Date   Wed, 7 Apr 2010 15:13:46 +0200

<> 


Also note http://www.stata-journal.com/sjpdf.html?articlenum=dm0009 re your
last query. You do not want to compare foreign to foreign, which yields true
in all cases. The missings there are due entirely to "rep78"...



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Claude
Francoeur
Gesendet: Mittwoch, 7. April 2010 14:59
An: statalist@hsphsun2.harvard.edu
Betreff: st: AW: RE: AW: Exclude some observations from a sample in a
regression

Thanks for showing me these different methods. I should have mentioned 
that I do have missing values in my sample. I'm confused though 
concerning the right command to use.

regress price weight length if foreign returns a regression using 22 
observations since there are no missing cases

regress price weight length rep78 if foreign returns a regression using 
21 observations since there is one missing value under rep78. This seems 
to be contrary to Nick's comment, but I probably am missing something. 


regress price weight length rep78 if foreign==foreign returns a 
regression using all 69 non missing observations including domestic 
cases. The if command does not seem to be recognised.

Thanks for your help!













 

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