Statalist The Stata Listserver


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

Re: st: running regs for subsamples


From   tabreez shams <[email protected]>
To   [email protected]
Subject   Re: st: running regs for subsamples
Date   Wed, 9 Aug 2006 03:02:20 -0700 (PDT)

Thanks to both Marcello Pagano, Kit Baum and Phillippe
Rehm for your comments on sorting the samples.

--- Marcello Pagano <[email protected]> wrote:

> 
> From: Kit Baum <[email protected]>
> Date: August 8, 2006 8:49:02 AM EDT
> To: [email protected]
> Subject: running regs for subsamples
> 
> 
> Shams asked about running regressions for data
> LT//GE annual median  
> values of a variable in panel data.
> 
> webuse grunfeld, clear
> egen medinv = median(invest), by(year)
> g lowinv = (invest < medinv)
> bys lowinv: reg invest mvalue kstock
> bys lowinv: xtreg invest mvalue kstock, fe
> 
> Kit Baum, Boston College Economics
> http://ideas.repec.org/e/pba1.html
> An Introduction to Modern Econometrics Using Stata:
> http://www.stata-press.com/books/imeus.html
> *
> *   For searches and help try:
> *  
> http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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