The brand new desk options launched in Stata 17 and Stata 18 have made it simple to create and customise tables of descriptive statistics, regression outcomes, and extra. These highly effective options grew to become in style amongst our customers very quickly after they have been launched, and we frequently get questions from customers who wish to know the best way to accomplish particular customizations for his or her tables. To supply our group with extra studying assets, we rigorously chosen a number of the questions that we answered incessantly, and turned them right into a collection of example-enriched FAQs:
https://www.stata.com/assist/faqs/reporting/
Right here I’ll offer you a preview of what you possibly can study within the new FAQs. Maybe you will have a desk that appears like
------------------------------------------------------------------
Home Overseas Whole
------------------------------------------------------------------
N 52 (70.3%) 22 (29.7%) 74 (100.0%)
Trunk house (cu. ft.) 14.750 (4.306) 11.409 (3.217) 13.757 (4.277)
Mileage (mpg) 19.827 (4.743) 24.773 (6.611) 21.297 (5.786)
Restore file 1978
1 2 (4.2%) 0 (0.0%) 2 (2.9%)
2 8 (16.7%) 0 (0.0%) 8 (11.6%)
3 27 (56.2%) 3 (14.3%) 30 (43.5%)
4 9 (18.8%) 9 (42.9%) 18 (26.1%)
5 2 (4.2%) 9 (42.9%) 11 (15.9%)
------------------------------------------------------------------
however you surprise the best way to insert a p-value obtained from a logistic regression, leading to a desk that appears like
--------------------------------------------------------------------------
Home Overseas Whole p-value
--------------------------------------------------------------------------
N 52 (70.3%) 22 (29.7%) 74 (100.0%)
Trunk house (cu. ft.) 14.750 (4.306) 11.409 (3.217) 13.757 (4.277)
Mileage (mpg) 19.827 (4.743) 24.773 (6.611) 21.297 (5.786)
Restore file 1978
1 2 (4.2%) 0 (0.0%) 2 (2.9%) 0.0005
2 8 (16.7%) 0 (0.0%) 8 (11.6%)
3 27 (56.2%) 3 (14.3%) 30 (43.5%)
4 9 (18.8%) 9 (42.9%) 18 (26.1%)
5 2 (4.2%) 9 (42.9%) 11 (15.9%)
--------------------------------------------------------------------------
In FAQ: How do I insert a custom-made statistic in an current desk?, we show the best way to insert customized content material right into a desk to get the precise look you need.
You might also wish to change the font, fashion, and background coloration for sure cells of your desk, producing a desk that appears like
however should not positive how to take action. You’ll be able to study by studying FAQ: How can I customise my desk so as to add cell shading, daring formatting, and underline texts?
Or chances are you’ll be inquisitive about the best way to change a desk’s structure from
-----------------------------------------------------------------
| Imply Commonplace deviation
| Worth Mileage (mpg) Worth Mileage (mpg)
-----------+-----------------------------------------------------
Automotive origin |
Home | 6072.423 19.82692 3097.104 4.743297
Overseas | 6384.682 24.77273 2621.915 6.611187
Whole | 6165.257 21.2973 2949.496 5.785503
-----------------------------------------------------------------
to
---------------------------------------------------------------------------
| Mileage (mpg) Worth
| Imply Commonplace deviation Imply Commonplace deviation
-----------+---------------------------------------------------------------
Automotive origin |
Home | 19.82692 4.743297 6072.423 3097.104
Overseas | 24.77273 6.611187 6384.682 2621.915
---------------------------------------------------------------------------
and even to
Worth
-------------------------------------------
| Imply Commonplace deviation
-----------+-------------------------------
Automotive origin |
Home | 6072.423 3097.104
Overseas | 6384.682 2621.915
Whole | 6165.257 2949.496
-------------------------------------------
Mileage (mpg)
-------------------------------------------
| Imply Commonplace deviation
-----------+-------------------------------
Automotive origin |
Home | 19.82692 4.743297
Overseas | 24.77273 6.611187
Whole | 21.2973 5.785503
-------------------------------------------
To find out how, you possibly can learn FAQ: How do I modify a desk’s structure utilizing accumulate structure?
In addition to producing tables, we even have steerage on the best way to export the desk to different file codecs in FAQ: What strategies can we use to export a customizable desk from Stata to a different format?
Extra particularly, to discover ways to export a number of tables into one file, which is extra concerned than exporting a single desk, you possibly can learn FAQ: How can I export a number of tables to 1 file? On this FAQ, we additionally show the best way to generate an HTML file with a special-styled desk that appears like
And there may be rather more. Now we have a wholly new collection of FAQs to point out you the best way to customise your tables and export them in varied methods:
How can I create desk layouts from scratch through the use of accumulate get?
How can I take away rows or columns from a desk generated with accumulate, desk, or dtable?
How do I modify a desk’s structure utilizing accumulate structure?
How can I export a number of tables to 1 file?
What are the autolevels of a dimension in a desk (assortment)?
Mix a number of tables obtained with desk or dtable utilizing accumulate
What strategies can we use to export a customizable desk from Stata to a different format?
How can I customise my desk so as to add cell shading, daring formatting, and underline texts?
How can I simply create and export a desk of regression outcomes from Stata to different codecs?
Which variations of Stata have the desk, dtable, etable, and accumulate instructions?
I hope you’ll take a look at these new assets and see in the event that they will help you make your custom-made tables precisely the way in which you need!

