Hello,
I am wondering if anyone knows a way to generate Univar results into one table? In my example below, I would want "White", "Black" and "Other" to be rows in a table, while columns would be N Mean S.D. Min .25 Mdn .75 and Max. Would the best way to do this be to use the table command?
Thank you for any help.
sysuse nlsw88.dta
univar tenure if grade==18, by(race)
-> race=white
-------------- Quantiles --------------
Variable n Mean S.D. Min .25 Mdn .75 Max
tenure 126 6.60 5.70 0.00 2.00 4.21 9.83 20.42
-> race=black
-------------- Quantiles --------------
Variable n Mean S.D. Min .25 Mdn .75 Max
tenure 27 9.98 6.34 0.00 3.83 9.67 15.83 21.75
-> race=other
-------------- Quantiles --------------
Variable n Mean S.D. Min .25 Mdn .75 Max
tenure 1 6.75 . 6.75 6.75 6.75 6.75 6.75
I am wondering if anyone knows a way to generate Univar results into one table? In my example below, I would want "White", "Black" and "Other" to be rows in a table, while columns would be N Mean S.D. Min .25 Mdn .75 and Max. Would the best way to do this be to use the table command?
Thank you for any help.
sysuse nlsw88.dta
univar tenure if grade==18, by(race)
-> race=white
-------------- Quantiles --------------
Variable n Mean S.D. Min .25 Mdn .75 Max
tenure 126 6.60 5.70 0.00 2.00 4.21 9.83 20.42
-> race=black
-------------- Quantiles --------------
Variable n Mean S.D. Min .25 Mdn .75 Max
tenure 27 9.98 6.34 0.00 3.83 9.67 15.83 21.75
-> race=other
-------------- Quantiles --------------
Variable n Mean S.D. Min .25 Mdn .75 Max
tenure 1 6.75 . 6.75 6.75 6.75 6.75 6.75
Comment