How can I have a summary of some factor variables with the proportions, std. dev. and total number of observation for each category as well as the total number and proportion of missing values for this variable? When I use as below, I get the total number of nonmising values, proportion and std. dev. for each category but not the total number of observations for these variables as well as missing values for the variable.
Code:
. summarize bn.loc_obit Variable | Obs Mean Std. Dev. Min Max -------------+-------------------------------------------------------- loc_obit | Hospital | 18416474 .6655359 .4718028 0 1 Outro cnes | 18416474 .0224223 .1480525 0 1 Domicilio | 18416474 .2250346 .4176051 0 1 Via publica | 18416474 .0530886 .2242101 0 1 Outros | 18416474 .0339187 .18102 0 1
Comment