Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: egen mean function


From   James Avery <macavery@yahoo.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: egen mean function
Date   Wed, 17 Aug 2005 17:22:16 -0700 (PDT)

Dear all,

I am using a rolling cross-sectional survey. So I have
individual-level data. There are many days and many
individuals interviewed each day. I have a variable
for day and another variable for campaign news volume
(CNV). I would like to create a new variable, prior
week campaign news volume (PWCNV) that is the mean CNV
for the prior 7 days. Is it possible to do this with
the egen mean function or with another egen function?

Thanks!

James Avery

__________________________________________________
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index