TABLE MEXICO2020 AS FREQUENCY OF PERSONA.CIUDADRES BY PERSONA.CIUDADRES5 FILTER PERSONA.EDAD > 4 OUTPUTFILE XLS "mex-2020-C5MB.xlsx" DEFINE PERSONA.CONDVIVIA AS SWITCH INCASE PERSONA.CIUDADRES = PERSONA.CIUDADRES5 ASSIGN 1 INCASE PERSONA.CIUDADRES <> PERSONA.CIUDADRES5 ASSIGN 2 ELSE 1 - 2 TABLE HABIT FREQ PERSONA.CIUDADRES FOR PERSONA.CIUDADRES5 >= 0 TABLE VIVIA FREQ PERSONA.CIUDADRES5 FILTER PERSONA.EDAD > 4 and PERSONA.EDAD < 199 TABLE NOMIGRA FREQ PERSONA.CIUDADRES FILTER PERSONA.CONDVIVIA = 1 //Inmigrantes TABLE Inmigrantes AS TABOP HABIT-NOMIGRA DECIMALS 0 //Emigrantes TABLE Emigrantes AS TABOP VIVIA-NOMIGRA DECIMALS 0 //MigraciA3n Neta TABLE Migra_Neta AS TABOP OF Inmigrantes - Emigrantes DECIMALS 0 //MigraciA3-Brutan Bruta TABLE Migra_Bruta AS TABOP Inmigrantes + Emigrantes //InmigraciA3n TABLE Inmigracion AS TABOP ((Inmigrantes /5) / ((HABIT + VIVIA)/2)* 1000) //EmigraciA3n TABLE Emigracion AS TABOP ((Emigrantes /5) / ((HABIT + VIVIA)/2)*1000) //MigracA3n Neta TABLE Ind_Migra_Neta AS TABOP Inmigracion - Emigracion //indice de eficacia migratoria TABLE Ind_Efi_Migr TABOP Migra_Neta / Migra_Bruta TABLE INDICADORES TABLELIST HABIT, VIVIA, NOMIGRA, Inmigrantes, Emigrantes, Migra_Neta, Migra_Bruta, Inmigracion, Emigracion , Ind_Migra_Neta, Ind_Efi_Migr OUTPUTFILE XLS "mex-2020-C5MB.xlsx" APPEND