Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: getting details about the selected cases in regression


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: getting details about the selected cases in regression
Date   Tue, 7 Oct 2008 09:25:28 +0200

-count if e(sample) & dummy_var1==1- 



HTH
Martin

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Dalhia Mani
Sent: Tuesday, October 07, 2008 7:35 AM
To: statalist@hsphsun2.harvard.edu
Subject: st: getting details about the selected cases in regression

Alan, Thanks so much.


I also have a follow up question, and any advice will be very much
appreciated. I have some dummy variables that have very few positive
cases.  So if I run the command "regress y x if var1>100 & var1<200",
is there a way to find out how many cases included in the regression
had dummy_var1=1?

I appreciate any help on this.

thanks
dalhia

On Mon, Oct 6, 2008 at 11:55 PM, Alan Neustadtl
<alan.neustadtl@gmail.com> wrote:
> -regress y x if var1>100 & var1<200-
>
> On Tue, Oct 7, 2008 at 12:51 AM, Dalhia Mani <dalhia.mani@gmail.com>
wrote:
>> hi,
>> How can I select particular cases (e.g. all observations where
>> var1>100 and var1<200), and run a regression only on those cases?  I
>> don't want to drop the cases.  I just want to select them for a
>> particular regression.
>>
>> Any help will be much appreciated.
>>
>> thanks so much
>> dalhia
>> *
>> *   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/
>



-- 
Dalhia Mani
Department of Sociology
University of Minnesota
Office: 1052 Social Sciences
267 19th Avenue South, Minneapolis
MN 55455
*
*   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   |   What's new   |   Site index