## Visitors

Header image of Hong Kong financial center courtesy of hleung on flickr.

## Previous

My Mac solutions for basic GIS analysis

### Decomposing Gini coefficient in R (updated)

I am working on several projects on fiscal disparities. The level of inequality can be measured by summary indices such as the Gini coefficient, but I like to move a step forward and decompose the aggregate inequality value into its relevant component contributions.

Take income inequality as an example. One way of factor decomposition is to separate the effects of multiple income streams that form the total income. It has been proposed that a Gini coefficient can be separated as multiple components based on a weighted average of pseudo-Gini (Fei et al 1978; Shorrocks 1982). With this method, for each revenue stream, we can calculate its absolute contribution, relative contribution, and marginal effect (Lerman and Yitzhaki 1985) to the inequality (Gini) of total income.

How to do this in R? Failed to find any package ("library") that can do it directly, I decided to create the function on my own by revising R codes from known packages such as ineq and reldist. It turns out to be easy and really fun!

The formulas (R file):

The R outputs are shown below:

Thanks Dr. Zhao! I'm working with R codes at school right now. Very helpful.

UEvJPF comment1

Evening i just came across your website from Yahoo and have already been browsing around some of your respective posts and just wondering why you chose a WordPress web page dont you obtain it problematic to do anything with? Also a security concern?

The information on this web-site is based on evidence from research on cease smoking programs, cease smoking aids and counseling, which are aimed at helping persons to quit smoking for excellent. For those who want to stop smoking better start now. Think of the household. Secondhand smoke can kill them. Be aware of how life can give you.

Can We have the source file so that I'm able to delete the background and remove the subject material that I do not need such as the PG logo etc.?
Also, how do I get the name with the video as well as the caption to display during playback?

JUST BEND DOWN, SNIFF MY VA JAY JAY & ENJOY IT! :p

Hey There. I found your weblog using msn. This is an extremely smartly written article. I'll make sure to bookmark it and come back to read extra of your useful info. Thank you for the post. I'll definitely return.

DM on twitter are seriously irritating as most of them are spams and automated...I usually check my Inbox and delete DMs to get rid with the bulk
Shaan recently posted..Top 10 Android Based Google Chrome Themes

Children's Receiving Home is in the running to get a chunk of cash! By way of a program called Aprons in Action, the non-profit organization that receives quite possibly the most votes by means of Facebook will receive a \$25,000

My favorite photo app is camera++ appreciate frames

Hey there would you mind stating which blog platform you're working with? I'm going to start my own blog soon but I'm having a hard time making a decision between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your design and style seems different then most blogs and I'm looking for something unique. P.S My apologies for getting off-topic but I had to ask!

Hiya, I am really glad I've found this information. Today bloggers publish only about gossips and net and this is actually annoying. A good site with exciting content, that is what I need. Thanks for keeping this web site, I'll be visiting it. Do you do newsletters? Can not find it.

My programmer is trying to persuade me to move to .net from PHP. I have always disliked the idea because of the expenses. But he's tryiong none the less. I've been using Movable-type on numerous websites for about a year and am worried about switching to another platform. I have heard very good things about blogengine.net. Is there a way I can import all my wordpress posts into it? Any kind of help would be greatly appreciated!

Hello there! This post could not be written any better! Reading this post reminds me of my old room mate! He always kept talking about this. I will forward this write-up to him. Fairly certain he will have a good read. Thank you for sharing!

Howdy! I know this is kind of off topic but I was wondering which blog platform are you using for this website? I'm getting sick and tired of Wordpress because I've had problems with hackers and I'm looking at options for another platform. I would be fantastic if you could point me in the direction of a good platform.

Many thanks.
A very fantastic short article, with an informative look at on gaining valuable traffic using Squidoo.

Solomon is not free :(

Thanks Mark, glad you located it useful. :)

Howdy. Very cool site!! Man .. Beautiful .. Wonderful .. I will bookmark your website and take the feeds additionally...I'm glad to locate so much helpful information here in the article. Thanks for sharing..

Finnaly iv'e away from all of the sites ive seen this is the only one which gives this good of information. thank you

I have to admit,as much as I really liked looking at everything you wanted to say, I could not help but lose interest before too long. It really is as if you had a wonderful knowledge on the subject, but you forgot to include your visitors.

HCG Injections HCG Diet, HCG HCG Injections buy now HCG Injections HCG Diet, HCG Injections HCG HCG HCG Injections

Thanks again for the post.Really thank you! Great.

Definitely enjoyed this established, thanks Gisele!

If you might be during the Boise metropolitan area, Flying Pie can make the top pizza inside the city which is type of among people fun-loving household owned sort of enterprises exactly where the employees generally seem like they're having a ton of fun, provide the occasional tattoo, weird hair color, and piercing that exhibits that whomever their overlords are they aren't way too critical about forcing their workers to generally be "professional".

Thanks a lot, I agree using a lot of the factors you mentioned in your post.

Hi Harold, Test your e-mail for additional information on the best way to proceed.

How Can I Copyright Protect Stories and Articles on My Website?

When i 1st experienced The Grudge I was soooooooooo creeped out. But Ill give props on the Shining, and the two Beetlejuice and also the Ghost and Mr. Chicken because those people two have been funny.

I Observed Considered one of YOUR TRUCK A long time Ago Though I used to be IN PA.

Thank you, I have recently been searching for info about this subject for ages and yours is the best I’ve found so far.

Red is grey and yellow white
We decide which is right
and which is an illusion.

Aided me a lot, just what I was searching for : D.

One of the many lessons that one learns in prison is, that things are what they are and will be what they will be.

Hi there! I got your point but why one should consider sharing this one? =)

It takes but one positive thought when given a chance to survive and thrive to overpower an entire army of negative thoughts.

Some really nice stuff on this website, I enjoy it.

Saved as a favorite, I love your site!

You got a really useful blog, and I just wish to give an enormous thumbs up for the good data you have right here on this post. I am a newbie and your success is very much an inspiration for me.

Any report(s) post Feb 6th (latest I could find) expedition turned back to base camp by high winds, but hoping to attempt again the next day)?

Wow! Thank you! I always wanted to write on my site something like that. Can I implement a portion of your post to my blog?

Hi Beth Anne! I'm a speech pathology major at Penn State. I truly enjoyed hearing your story, and am so impressed by your hard work and perseverance. I was wondering if you ever considered traveling to other schools, both college and high school, to share your story with more people? Also, what made you decide on creative writing as a major? Thank you so much for sharing your story with us, and good luck in the future!

You arent the only just one :P I'd that exact visual

I really like it when folks come together and share ideas. Great website, continue the good work!

Unwelcome products like toxins and metals which will trigger agony are washed off. While doctors typically address gout the exact same way they cure arthritis, finding a normal gout treatment can help gout sufferers without the need of costing a great deal of capital.

I blog often and I really thank you for your information. This great article has really peaked my interest. I will take a note of your website and keep checking for new information about once per week. I subscribed to your Feed as well.

This article was extremy helpful! Thanks you so much, solved a problem with the new website I am working on.

A great deal of comments on this website an no wonder for the reason that this can be a quite cool web site with some good material on.

Omg, love!!! The interaction concerning the two is awesome. So are your footage

The Clean Diamond Trade Act also states the KPCS is an ongoing process and the U.S. government will continue to strengthen the KPCS and monitor its effectiveness. I really appreciate to this blog.

Thanks!! These are great! They will be very useful for our real estate site development!

I am highly upset that I have filled the form and mailed it asap!! still I have someone leaving notes on my door and now calling me.... this in not goin as planned... what is really goin on??? is my neighborhood targetted!!

I'm a religious Jew, who believes, at least in theory, in the Hebrew script existing before the creation of the world, and when I saw the title of this post, I said to myself, "oh, Chinese, what else could it be?". I guess this concept has been hammered into us so much that it's a knee-jerk reaction.

What a beautiful submit on Becket and his studio! You've got captured his heat and intelligence so properly. We will unquestionably miss dealing with him.

In every friend we lose a part of ourselves, and the best part.

This is a terrific web page, would you be involved in doing an interview about just how you created it? If so e-mail me!

Appreciate it for helping out, good info. "A man will fight harder for his interests than for his rights." by Napoleon Bonaparte.

I like this website very much, Its a real nice position to read and find information. "You know that children are growing up when they start asking questions that have answers." by John J. Plomp.

I have been already dealing with these things for a very long time, however with no doubt I wouldn't be able to present it better. Great respect for the author of the article.

You have brought up a very great details, thank you for the post.

Mate, I have been looking for in vain such a/an text for more than two. It helped me much. Thanks very much!

Hi, I just wanted to say, you're dead wrong. Your blog doesn't make any sense.

I'm not positive I agree with your article. Do you really believe what you wrote? I like your determined opinion though. I'm sure I will be back to read more.

I am not positive I agree with your posting. Do you really believe what you wrote? I like your determined opinion though. I most positively will be back to read more.

It seems that when you wrote this post you were really under some stress. You should really most definitely consider AttitudeShifting. It works wonders when you are stressed or depressed. Best of all it will give you almost immediate relief.

Article writing is also a excitement, if you know then you can write or else it is difficult to write.|

BUY CHEAP DRUGS : -==== Anti Depressants Cure ====-

I saw a lot of website but I think this one has got something special in it. "You have to sow before you can reap. You have to give before you can get." by Robert J. Collier.

So-so. Something was not impressed.

Great Article! I will definitely be back to search for Boise Real Estate, or to read about your take on boise mls map data!

Hi there, I just wanted to say, you're wrong. Your article doesn't make any sense.

A great time Saturday night. We surprised my parents and they were thriled when they got there..Thank you! I had been instructed by the photo booth person that photos would be online. Where are they?

I submite my blog site to that web-site even so the result is, webpage creation fail

You have made some good points there. I looked on the internet for more information about the issue and found most people will go along with your views on this site.

When should I expect my first letter?

This is a very nice article. Thanks for sharing it. How long have you been running this blog?

This is a very nice article. Thanks for sharing it. How long have you been running this blog?

This is a very nice article. Thanks for sharing it. How long have you been running this blog?

This is a very nice article. Thanks for sharing it. How long have you been running this blog?

This is a very nice article. Thanks for sharing it. How long have you been running this blog?

This is a very nice article. Thanks for sharing it. How long have you been running this blog?

This is a very nice article. Thanks for sharing it. How long have you been running this blog?

Hubert H. Humphrey Institute of Public Affairs