Statalist


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

Re: st: Re: creating mean across panel variables


From   "Thomas Jacobs" <[email protected]>
To   [email protected]
Subject   Re: st: Re: creating mean across panel variables
Date   Wed, 24 Oct 2007 23:10:38 -0500

Dear Kit,

Collapse worked like a charm.  Thanks, once again, for the help.  I
don't think I could have completed this presentation in time without
all of your answers.

Sincerely,

Tom

On 10/24/07, Kit Baum <[email protected]> wrote:
> -collapse- will create a dataset with one observation per day
> containing the summary statistics you specify. If you don't want to
> collapse the data, then -egen, mean()- will create a new variable
> with the same mean value repeated for each firm.
>
>
> 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
>
>
> On Oct 24, 2007, at 2:33 AM, Thomas wrote:
>
> > I have the following problem I have been unable to decipher.  I have a
> > panel of 200 firms with 5 years of trading data in the form of spreads
> > at various maturity points.  Suppose I wish to create a daily average
> > or median spread across all firms to produce a time series of average
> > and mean each day.  Can anyone suggest how to do that?  Thanks.
>
> *
> *   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/
>


-- 
Thomas Jacobs
*
*   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