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

From |
"sarakhanum84@googlemail.com" <sarakhanum84@googlemail.com> |

To |
"statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |

Subject |
st: Transition tables |

Date |
Fri, 16 May 2008 07:40:55 -0700 |

Dear Statalisters 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? Any help would be most appreciated. Sara 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/

- Prev by Date:
**st: graph question** - Next by Date:
**st: Problems with STATA 10, e.g. saving file causes variables to dropout,** - Previous by thread:
**st: RE: Transition tables** - Next by thread:
**st: Adding cumulatively** - Index(es):

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