Dear
I am doing cross tables for 4 variables, but I report in frequencies and what I am looking for is to report it in percentages
Command:
table edad_categorizado sexo1 grado_instruccion1, by(SES) contents(freq)
My goal is to evaluate: by total or rows or columns.
I am doing cross tables for 4 variables, but I report in frequencies and what I am looking for is to report it in percentages
Command:
table edad_categorizado sexo1 grado_instruccion1, by(SES) contents(freq)
My goal is to evaluate: by total or rows or columns.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input double edad_categorizado long(sexo1 grado_instruccion1) float SES 5 1 3 1 5 2 3 1 5 2 2 1 1 2 3 1 3 1 3 1 1 1 4 1 3 2 4 1 4 2 3 1 1 2 3 1 1 1 3 1 5 1 3 1 3 2 4 1 1 2 2 1 4 2 3 1 8 2 3 1 4 2 4 1 4 2 3 1 1 2 4 1 6 1 4 1 6 2 3 1 5 1 3 1 4 2 3 1 1 1 3 1 3 2 4 1 4 2 3 1 3 2 3 1 1 1 3 1 3 1 3 1 1 1 4 1 3 1 4 1 1 1 3 1 3 2 3 1 3 1 3 1 5 2 3 1 1 1 3 1 1 1 4 1 1 1 4 1 3 2 4 1 3 1 4 1 3 2 3 1 4 2 3 1 3 1 3 1 4 2 3 1 3 1 3 1 4 1 4 1 3 2 3 1 3 2 4 1 5 1 3 1 3 1 3 1 5 1 3 1 5 1 4 1 3 1 4 1 4 2 3 1 3 2 3 1 1 1 3 1 3 2 4 1 8 1 3 1 5 2 3 1 4 1 2 1 3 1 3 1 3 1 3 1 3 2 4 1 1 1 4 1 3 2 3 1 1 2 3 1 4 2 4 1 1 1 3 1 4 2 4 1 3 1 3 1 5 2 2 1 3 2 4 1 4 2 3 1 6 2 3 1 7 2 4 1 1 2 3 1 3 2 3 1 4 2 3 1 6 2 3 1 6 2 4 1 6 2 3 1 4 1 3 1 3 2 4 1 3 1 4 1 3 1 4 1 4 1 3 1 6 1 3 1 4 1 3 1 1 2 3 1 3 2 4 1 4 1 3 1 3 2 4 1 1 1 3 1 4 2 3 1 1 1 3 1 3 2 3 1 3 1 4 1 6 1 3 1 4 1 3 1 3 2 4 1 4 2 4 1 end label values edad_categorizado edad_cat label def edad_cat 1 "0-10 años", modify label def edad_cat 3 "21-30 años", modify label def edad_cat 4 "31-40 años", modify label def edad_cat 5 "41-50 años", modify label def edad_cat 6 "51-60 años", modify label def edad_cat 7 "61-70 años", modify label def edad_cat 8 "70 a más", modify label values sexo1 sexo1 label def sexo1 1 "F", modify label def sexo1 2 "M", modify label values grado_instruccion1 grado_int_4 label def grado_int_4 2 "Nivel Primaria", modify label def grado_int_4 3 "Nivel Secundaria", modify label def grado_int_4 4 " Nivel Superior", modify label values SES SES label def SES 1 "Alto", modify
Comment