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

Re: st: mobility table


From   philippe.vankerm@ceps.lu
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: mobility table
Date   Tue, 16 Nov 2004 15:43:36 +0100





When your data (your mobility table) are available as a Stata matrix as
suggested by Nick Cox, it is straightforward to compute standard mobility
indices.

A couple of examples:

/* Shorrocks' MET - Prais Index */

loc q = rowsof(`M')
loc tr = trace(`M')
loc MET = (`q' - `tr')/(`q'-1)
di in gr "  Shorrocks' MET - the Prais index" _col(38) ": " %5.3f in ye
`MET'

/* The Determinant Index */
loc det = det(`M')
loc DETI = 1 - (abs(`det'))^(1/(`q'-1))
di in gr "  Determinant Index " _col(38) ": " %5.3f in ye `DETI'


Philippe




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



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