Statalist


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

st: re: multiple sample split (year-by-year)


From   Kit Baum <[email protected]>
To   [email protected]
Subject   st: re: multiple sample split (year-by-year)
Date   Tue, 13 Nov 2007 11:06:21 -0500

West said


My database: panel data (unbalanced), 1200 firms, 8 variables.
First, I need to calculate the median value of a given variable (es.
var1), year-by-year. Then, I would divide firms evenly into three groups
according to their value in each year, I mean firms residing in the
low-, middle- and high- var1 group. Could anybody tell me the commands I
need to use? Thank you very much in advance for any illustrative
example.



It is not clear to me how computing a median allows you to divide anything into three groups. Perhaps if you would state exactly how you would like to define low, medium, high in statistical terms it would be possible to propose an exact solution.

Kit


Kit Baum, Boston College Economics and DIW Berlin
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/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index