I am trying to use dtable to produce a table but I am unable to get the values in the columns to align:
----------------------- copy starting from the next line -----------------------
There seems to be similar behaviour in the tables in the blog The Stata Blog ยป Creating tables of descriptive statistics in Stata 18: The new dtable command.
Is it possible to align the data in the columns?
Thank you.
Julie
----------------------- copy starting from the next line -----------------------
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str2 Case double(a1 a2 a3) byte digital double(d1 d2 d3) "1" 4572 13461 18033 1 4433 6111 10544 "2" 4613 18754 23367 8 4459 6030 10489 "3" 4527 19667 24194 9 4437 6922 11359 "4" 4342 18756 23098 10 4759 6808 11567 "5" 2085 7154 9239 11 4419 7059 11478 "6" 4155 17563 21718 12 4839 9106 13945 "7" 4760 20071 24831 13 4404 6508 10912 "8" 4530 18416 22946 14 4610 10274 14884 "9" 4777 17825 22602 15 4910 1536 6446 "10" 2090 6764 8854 2 4915 4887 9802 "11" 4175 19312 23487 3 5037 2313 7350 "12" 4388 18059 22447 4 5286 8900 14186 "13" 2231 6858 9089 5 4683 7610 12293 "14" 2178 6112 8290 6 5255 5560 10815 "15" 2197 6559 8756 7 4616 7431 12047 end dtable a1-a3 d1-d3, continuous(a1-a3 d1-d3, statistics( mean sd min max)) /// column( summary(Summary Statistics of time (A/D)) ) nformat(%7.0f) collect notes "Mean, (SD), Min, Max. Times rounded to seconds" collect preview ------------------------------------------------ Summary Statistics of time (A/D) ------------------------------------------------ N 15 Fabrication / s 3708 (1150) 2085 4777 Ancillary / s 14355 (5806) 6112 20071 Total / s 18063 (6911) 8290 24831 Fabrication / s 4737 (297) 4404 5286 Ancillary / s 6470 (2322) 1536 10274 Total / s 11208 (2279) 6446 14884 ------------------------------------------------ Mean, (SD), Min, Max. Times rounded to seconds
Is it possible to align the data in the columns?
Thank you.
Julie
Comment