Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Transition tables


From   "[email protected]" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: RE: Transition tables
Date   Fri, 16 May 2008 07:40:36 -0700

Work on the subset of the data that is just waves 1, 7, 12. Map to 1, 2,
3 and label 1, 7, 12 if necessary.

Nick
[email protected]

sara khan

I am writing to ask for advice regarding transition tables using long
data. I have 12 waves of data and want to work out entries and exits
from poverty. I have created the relevant variables using a lag of 1
period however, how would I modify this to allow me to create specific
transition tables for entries and exits between wave1 and wave 7, and
then wave7 and wave12 (rather than the previous period only as in the
code below?

ge lagpov=L.ps60
lab var lagpov "pov status, previous interview"
lab val lagpov ps60
ta lagpov ps60, row col

ta lagpov ps60 if wave==2, row col

*DUMMY VARIABLES MARKING ENTRY TO & EXIT FROM POVERTY
ge enterpov=0 if L.ps60==0
replace enterpov=1 if L.ps60==0 & ps60==1
lab var enterpov "entered poverty?"
lab def enterpov 0 "stayed non-poor" 1 "entered poverty"
lab val enterpov enterpov

ge exitpov=0 if L.ps60==1
replace exitpov=1 if L.ps60==1 & ps60==0
lab var exitpov "left poverty?"
lab def exitpov 0 "stayed poor" 1 "left poverty"
lab val exitpov exitpov

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

_____________________________________________________________________
Mensaje analizado y protegido por Telefonica Empresas
*
*   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/

Privileged, confidential or patient identifiable information may be contained in this message. This information is meant only for the use of the intended recipients. If you are not the intended recipient, or if the message has been addressed to you in error, do not read, disclose, reproduce, distribute, disseminate or otherwise use this transmission. Instead, please notify the sender by reply e-mail, and then destroy all copies of the message and any attachments.

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index