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

Re: st: Covariance matrice.

Subject   Re: st: Covariance matrice.
Date   Wed, 25 Aug 2004 17:06:01 -0400

You're right, Stas.
I will post later a more detailed example of what I have in mind.
Have a meeting right now.
Best regards.

                      Stas Kolenikov                                                                                                       
                      <>         To:                                            
                      Sent by:                         cc:                                                                                 
                      owner-statalist@hsphsun2.        Subject:  Re: st: Covariance matrice.                                               
                      08/25/2004 04:50 PM                                                                                                  
                      Please respond to                                                                                                    

> I have an income variable grouped into 5 categories (Q1 Q2 Q3 Q4 Q5) ie
> from poorest to richest and I want to compute its covariance with the
> following vector:
>         |   0.1    |
>         |   0.3    |
>         |   0.5    |
> X =  |   0.7    |
>         |  0.9     |
> How to do that into stata?
> I would appreciate any help.

It looks like you are trying to estimate the Gini coefficient. This would
be a quite risky thing to do with the quintile data, I would argue. Kit
Baum posted a solution, but you should keep in mind when you want to
interpret this data that computing such covariance understates the Gini
coefficient quite notably: just draw the Lorenz curve for the data with
five levels of income corresponding to the discrete distribution you are
dealing with.

 ---                                    Stas Kolenikov
 --       Ph.D. student in Statistics at UNC-Chapel Hill
 -  --

* This e-mail and all attachments to it are not intended to provide any
* reasonable point of view and was transmitted to you in error. It
* should be immediately deleted by all recipients unless they really
* enjoy communicating with the author :). Other restrictions apply.

*   For searches and help try:

*   For searches and help try:

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