The title may be unclear, but the idea is simple: with built-in command --tabstat-- we cannot disply variables' labels, with --fsum-- we can do this but there's no --by() option with which I can " speciļ¬es that the statistics be displayed separately for each unique value of varname;" , There's an option named cat() in --fsum-- which confused me, is it my problem's answer?
I experienced the following command
char a2018[tlabel] "a2018 (% local_Hukou)"
fsum a2018 a3012 a3020 a3022,stat(mean sd) cat(a2018) uselabel
in which Local_Hukou is a previously defined value label for a2018, but it's not what I want, the Local_Hukou appeared in the first column like other labels rather than in the first row like when using -tabstat-- with by() option. Should I replace a2018 in the first line with Local_Hukou ? I don't know, the example in the help file of -fsum- is confusing me
char sex[tlabel] "Sex (% male)"
fsum age sex ethorig pcs,mcat(ethorig) cat(sex)
I'm not familiar with the char staff. Could someone give me a clue. Thanks a lot
I experienced the following command
char a2018[tlabel] "a2018 (% local_Hukou)"
fsum a2018 a3012 a3020 a3022,stat(mean sd) cat(a2018) uselabel
in which Local_Hukou is a previously defined value label for a2018, but it's not what I want, the Local_Hukou appeared in the first column like other labels rather than in the first row like when using -tabstat-- with by() option. Should I replace a2018 in the first line with Local_Hukou ? I don't know, the example in the help file of -fsum- is confusing me
char sex[tlabel] "Sex (% male)"
fsum age sex ethorig pcs,mcat(ethorig) cat(sex)
I'm not familiar with the char staff. Could someone give me a clue. Thanks a lot
Comment