Bookmark and Share

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

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

Re: st: location-industry averages

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

This question has already been answered.


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

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


On Wed, Oct 12, 2011 at 12:48 AM, donsaane <> 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:

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