Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: location-industry averages


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: location-industry averages
Date   Wed, 12 Oct 2011 01:10:54 +0100

This question has already been answered.

See http://www.stata.com/statalist/archive/2011-09/msg01301.html

Use -egen-'s -mean()- function. An analogue is

sysuse auto
egen meanmpg = mean(mpg), by(rep78)

In any case, your problem could hardly be more vague. What are your
"difficulties"?

I can't see that any dummy variables are needed.

Nick

On Wed, Oct 12, 2011 at 12:48 AM, donsaane <[email protected]> wrote:

> I have difficulties to create this variable : the average amount of bribes
> common to industry-location. Do I have to create industries dummy, location
> dummy?
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index