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

re: st: inequal7 and beyond

From   "Moon Joong" <[email protected]>
To   [email protected]
Subject   re: st: inequal7 and beyond
Date   Fri, 25 Apr 2003 10:51:37 -0400

Dear Philippe Van Kerm,

Thank you *so* much for your help! I deeply appreciate it. And thanks a lot for writing great papers on income inequality and for creating good Stata modules.

Moon Joong

From: [email protected]
Reply-To: [email protected]
To: [email protected]
Subject: re: st: inequal7 and beyond
Date: Fri, 25 Apr 2003 10:36:36 +0200

Moon Joong,

(1) Retrieving results from -inequal2- or -inequal7- is not more difficult
than for other Stata commands. Inequality estimates are saved in global
macros (see the help files for details). For example,

gen results = .
inequal7 income
replace results = `r(gini)'  in 1
replace results = `r(kakwani)'  in 2
replace results = `r(mehran)'  in 3

will generate a variable containing estimates for the Gini, Kakwani and
Mehran measures.

(Note that -inequal7- stores results in macros rather than scalars. This
is an oddity I will fix when updating these commands.)

Look at -file- or -outsheet- if you want to export results to some other

(2)  As for your second question, -inequal7- requires at least 11 obs. in
your dataset. (Why 11? That's because eleven inequality indices are
-tabdisp-layed by inequal7.) If you -set obs 11-, then run inequal7, it
should work. This is a small bug I should also fix one day, when updating
the command.

Hope this helps,


Philippe Van Kerm
Research Associate
BP48, L-4501 Differdange, Luxembourg

Please pay a visit to:

st: inequal7 and beyond

From: "Moon Joong" <[email protected]>
Subject: st: inequal7 and beyond
Date: Thu, 24 Apr 2003 18:56:44 -0400

Dear Stata lovers,

Hi. I'm calculating the inequality indices using many modules like
or inequal7.

I was wondering if there is any way to generate variables that contain the

resulted indices or to save the indices in a spread sheet so that I can
them later on for my regression analysis. Otherwise I should rely on a
force(!) since I have a lot of country-year obs.

This question might be generic; in a sense the question is: how I can
generate the estimated results as variables or save them in a spread

And also whenever I typed the code 'inequal7' I got an error message,
"Obs. nos. out of range r(198)." I'm using Stata 8. But the code
works very well.

Thanks so much in advance!!!


This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
for the presence of computer viruses.

*   For searches and help try:

Help STOP SPAM with the new MSN 8 and get 2 months FREE*

* For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index