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]

st: How to code |x_i-x_j| in stata?

From   "LI Mengjia" <>
Subject   st: How to code |x_i-x_j| in stata?
Date   Thu, 10 Oct 2013 11:09:15 +0800 (CST)

Dear statalist,

I'm trying to calculate a "locational Gini coefficient" (rg) by using the formula in a reference paper in the following:


where n is the total number of industries in an area, i and j are just two industries in n industries, x is the market share of any industry, and u is the mean of x.

I have not idea how to put x_i-x_j into stata.

Thanks and best regards,
*   For searches and help try:

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