In Stata, I want value labels to appear in a tabulation -


i'm using stata (a statistics package), , renamed value labels of variable:

label define urban 0 "rural" 1 "urban", replace tabulate urban // should have 0. rural  20 559  , 1. urban  21 093 

i typed label list urban, , saw value labels replaced properly. however, labels weren't used when tabulated variable urban. why doesn't tabulate use value labels?

output:

. tabulate urban         urban dummy |      freq.     percent        cum. -------------------+-----------------------------------                  0 |     20,559       49.36       49.36     1. traditional |     21,093       50.64      100.00 -------------------+-----------------------------------              total |     41,652      100.00  . label list urban urban:            0 rural            1 urban 


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -