Statalist The Stata Listserver


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

st: running regressions for sub-samples


From   tabreez shams <[email protected]>
To   [email protected]
Subject   st: running regressions for sub-samples
Date   Tue, 8 Aug 2006 04:56:53 -0700 (PDT)

Hi,
I am using the following two models on an unbalanced
panel data over period 1997 to 2004:

1. reg yit x1it x2it x3it yr*
2. xtreg yit x1it x2it x3it yr*, fe small

Now I want to re-run the regression for sub-samples
based on the following criteria:

if x3it is less than the median value of x3it in each
year. Obviously, the other one is if x3it is equal or
more than the median value of x3it in each year.

Much appreciate if anyone can kindly provide the
statement/macro to run the models for the sub-samples
in Stata/SE 8.2.

Regards,
Shams
PhD Candidate
Accounting and Finance Dept.
Monash University,
Australia

__________________________________________________
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