stdtable standardizes a cross tabulation such that the marginal distributions (row and column totals) correspond to some pre-specified distribution, a technique that goes back to at least (Yule 1912). The purpose is to display the association that exists in the table nett of the marginal distributions. Consider the example below:
Code:
. use "http://www.maartenbuis.nl/software/mob.dta", clear
(mobility table from the USA collected in 1973)
. tab row col [fw=pop]
Father's | Son's occupation
occupation | upper non lower non upper man lower man farm | Total
----------------+-------------------------------------------------------+----------
upper nonmanual | 1,414 521 302 643 40 | 2,920
lower nonmanual | 724 524 254 703 48 | 2,253
upper manual | 798 648 856 1,676 108 | 4,086
lower manual | 756 914 771 3,325 237 | 6,003
farm | 409 357 441 1,611 1,832 | 4,650
----------------+-------------------------------------------------------+----------
Total | 4,101 2,964 2,624 7,958 2,265 | 19,912Code:
. stdtable row col [fw=pop], format(%5.0f) cellwidth(9)
----------------------------------------------------------------------------------
Father's | Son's occupation
occupation | upper non lower non upper man lower man farm Total
----------------+-----------------------------------------------------------------
upper nonmanual | 42 24 17 13 4 100
lower nonmanual | 27 30 18 18 6 100
upper manual | 16 20 33 23 8 100
lower manual | 11 21 22 34 12 100
farm | 4 6 9 12 69 100
|
Total | 100 100 100 100 100 500
----------------------------------------------------------------------------------
0 Response to new version of stdtable package available on SSC
Post a Comment