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

re: st: inequal7 and beyond


From   "Moon Joong" <mj_52@hotmail.com>
To   statalist@hsphsun2.harvard.edu
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.

Sincerely,
Moon Joong



From: philippe.vankerm@ceps.lu
Reply-To: statalist@hsphsun2.harvard.edu
To: statalist@hsphsun2.harvard.edu
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
software.

(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

<<<>>><<<>>><<<>>><<<>>><<<>>><<<>>><<<>>>
Philippe Van Kerm
Research Associate
CEPS/INSTEAD
BP48, L-4501 Differdange, Luxembourg

Please pay a visit to:
    http://www.ceps.lu/iriss/iriss.htm
    http://ideas.repec.org/s/irs/iriswp.html
   <<<>>><<<>>><<<>>><<<>>><<<>>><<<>>><<<>>>

********************************
st: inequal7 and beyond

From: "Moon Joong" <mj_52@hotmail.com>
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
inequal2
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
use
them later on for my regression analysis. Otherwise I should rely on a
brute
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
sheet.

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

Thanks so much in advance!!!

MoonJoong







**********************************************************************
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:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail

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