I have a silly question. How do I get a table with only frequencies? I don't want the percentages in the parentheses.
code example:
webuse nlswork.dta, clear
codebook race union year
tab year
tab year union if union == 1
keep if year > 86
label define yesno 0 "no" 1 "yes"
label values union yesno
dtable i.race i.union , by(year, nototals)
/*
--------------------------------------
Interview year
87 88
--------------------------------------
N 2,164 (48.8%) 2,272 (51.2%)
Race
White 1,572 (72.6%) 1,657 (72.9%)
Black 567 (26.2%) 589 (25.9%)
Other 25 (1.2%) 26 (1.1%)
1 if union
no 1,679 (77.7%) 1,423 (75.4%)
yes 482 (22.3%) 465 (24.6%)
--------------------------------------
*/
Thank you!
code example:
webuse nlswork.dta, clear
codebook race union year
tab year
tab year union if union == 1
keep if year > 86
label define yesno 0 "no" 1 "yes"
label values union yesno
dtable i.race i.union , by(year, nototals)
/*
--------------------------------------
Interview year
87 88
--------------------------------------
N 2,164 (48.8%) 2,272 (51.2%)
Race
White 1,572 (72.6%) 1,657 (72.9%)
Black 567 (26.2%) 589 (25.9%)
Other 25 (1.2%) 26 (1.1%)
1 if union
no 1,679 (77.7%) 1,423 (75.4%)
yes 482 (22.3%) 465 (24.6%)
--------------------------------------
*/
Thank you!
Comment