-------------------------------------------------------------------------------------------------------------------------------------------------- log: G:\Yu\research\Health Economics\2010\table1.log log type: text opened on: 16 Jun 2010, 00:06:33 . /*prepare descriptive statistics for married sample */ > clear; . use married_sample; . sort male; . tabstat bmi faminc educ age obese overweight withkid uninsured smoke employed > white black hispanic othrace married, by(male) stat(mean, sd) nototal longstub col(stat); male variable | mean sd ----------------------+-------------------- 0 bmi | 26.32204 5.410648 faminc | 70973.5 38887.38 educ | 13.97931 2.435007 age | 44.00907 9.997089 obese | .227073 .4189698 overweight | .5271439 .4992981 withkid | .5316797 .4990308 uninsured | .0798016 .2710049 smoke | .1776045 .3822066 employed | .6506024 .4768135 white | .8035436 .3973458 black | .0630758 .2431165 hispanic | .0891566 .2849899 othrace | .044224 .2056069 married | 1 0 ----------------------+-------------------- 1 bmi | 27.98561 4.371566 faminc | 70973.5 38887.38 educ | 14.05202 2.595167 age | 46.07215 10.16063 obese | .2795181 .4487942 overweight | .7620128 .4258815 withkid | .5316797 .4990308 uninsured | .0788094 .2694601 smoke | .2145996 .4105734 employed | .8223955 .3822066 white | .8083629 .393617 black | .0684621 .2525551 hispanic | .0810773 .2729731 othrace | .0420978 .2008265 married | 1 0 ------------------------------------------- . clear; . use children_sample; . sort male; . tabstat bmi faminc educ age obese overweight withkid uninsured smoke employed > white black hispanic othrace married, by(male) stat(mean, sd) nototal longstub col(stat); male variable | mean sd ----------------------+-------------------- 0 bmi | 23.84183 5.106826 faminc | 64319.59 49353.16 educ | 13.26767 1.735118 age | 21.06141 2.926744 obese | .1205098 .3257456 overweight | .3163384 .4653163 withkid | .4032445 .4908335 uninsured | .1216686 .3270922 smoke | .1807648 .3850463 employed | .6199305 .4856851 white | .8030127 .3979532 black | .0764774 .2659145 hispanic | .0880649 .2835536 othrace | .032445 .1772814 married | .5979143 .4906034 ----------------------+-------------------- 1 bmi | 25.01645 4.624936 faminc | 58404.09 48797.75 educ | 12.82581 1.706626 age | 21.02043 2.855435 obese | .1419355 .3491717 overweight | .4236559 .4944031 withkid | .2709677 .4446986 uninsured | .1870968 .390199 smoke | .2731183 .4458008 employed | .6354839 .4815532 white | .827957 .3776209 black | .0580645 .2339912 hispanic | .0612903 .2399911 othrace | .0526882 .2235304 married | .5086022 .500195 ------------------------------------------- . log close; log: G:\Yu\research\Health Economics\2010\table1.log log type: text closed on: 16 Jun 2010, 00:06:34 --------------------------------------------------------------------------------------------------------------------------------------------------