Files included are: 1) The code used (code.inp) in Living Arrangement Dynamics of Older Adults in Mexico: Latent Class Analysis in an Accelerated Longitudinal Design, and 2) The accelerated version of MHAS data used in said paper (acc_mhas.dat; 18 845 obs, 107 variables). Original data is publicly available at http://mhasweb.org/ The code.inp file is an Mplus (version 7.4) input file for the latent class analysis carried out. The “CLASSES” statement specifies the number of latent variables. The "KNOWNCLASS" statement specifies our different cohorts. The “TYPE=MIXTURE” option of the “ANALYSIS” command specifies the finite mixture modeling with categorical latent variables that represent subpopulations where population membership is not known but is inferred from the data. The “CATEGORICAL” option is used to specify which dependent variables are treated as binary or unordered categorical variables in the model and its estimation (see the Mplus User’s Guide for a detail explanation, https://www.statmodel.com/download/usersguide/Mplus%20user%20guide%20Ver_7_r3_web.pdf).