Statalist The Stata Listserver


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

st: Re: How to calculate this conditional mean


From   "Quang Nguyen" <quangn@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Re: How to calculate this conditional mean
Date   Tue, 31 Oct 2006 14:11:54 -1000

Dear all,

I have the following data set:

Vessel                   Date  of landing                  Revenue
1                           July/05/2004
2
3
.....

I would like to create a variable whose value is the average revenue
of all other vessels having the same date of landing. For instance,
for vessel 1, this variable will be the average revenue of all other
vessels (not including vessel 1) whose date of landing is
July/05/2004.
Thanks so much and Have A Wonderful Day!
Sincerely yours,

Quang
*
*   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