Many new features were introduced in Stata 18. But did you know we continually add new features between releases? Below, simply expand each section for descriptions on the new features we've added since the release of Stata 18.
reshape is now faster—often 10 times, 100 times, or even more times faster. With reshape's new favor(speed) option, you can reshape your data from long form to wide form or from wide form to long form in a manner that is faster but may require more memory than when you use the default favor(memory) option.
Alternatively, you may type set reshape_favor speed to specify that the default method for reshaping favors speed.
In Stata 18, we introduced an all-new graph style with a new color palette, horizontal y-axis labels, legend on the right side of the graph, and more. These new features are available in the st family of schemes.
For those who prefer a monochrome graph, we now offer two additional schemes: stmono1 and stmono2. These schemes follow the look of the labels, legends, and other features of the st schemes but with monochromatic markers and fill colors.
For those publishing articles in the Stata Journal, the new stsj scheme reflects the style of the st family with horizontal y-axis labels and a white background. This is now the official scheme for the Stata Journal.
graph twoway now allows you to specify aspect ratios based on common units in the x and y dimensions. Adding the aspectratio(1, units) option creates a graph where one unit in the x dimension and one unit in the y dimension each takes up the same distance on the plot. This is useful for plotting things such as latitude against longitude, which have common scaling of their units.
You can also specify arbitrary relative scales—typing aspectratio(100, units) specifies that each unit in the y dimension is 100 times the length of a unit in the x dimension.
You can now use OpenType fonts (.otf) in graphs when you use graph export to export your graph to SVG, PDF, PNG, JPEG, EMF, TIF, or GIF.
putdocx and putpdf can now create documents including up to 10,000 tables. You can specify the maximum number of tables allowed by using the new set docx_maxtable and set pdf_maxtable commands.
When creating tables with collect, you can now more easily hide the title of a factor variable when you are using the table style that stacks row header elements in one column.
Tables produced by collect now automate appropriate labeling of t and z statistics in more situations. For instance, when you create a table of linear regression results from the regress command, the test statistics are labeled as “z”. However, when you request bootstrap standard errors, the statistics are now automatically labeled as “t”.
You can now use OpenType fonts (.otf) when creating PDF documents with putpdf.
You can now use OpenType fonts when you use collect export, dtable, or etable to export a table to PDF.
You now have more control over formats in tables created by dtable and table. With the new basestyle suboption within the nformat() option, you can change the format for results that do not already have one without overriding the format for all results.
The Do-file Editor now extends syntax highlighting of comments to lines joined by ///.
Download the new features
Are you ready to use one of these new features? Want to find out what other changes we
made? If you already have Stata 18, type
. update all
in the Command window to download the new features. Then type
. help whatsnew
to see a list of all the new features added in free updates since Stata 18 was
Don't have Stata 18? Upgrade today to access these new features in addition to everything else we added in Stata 18.
Last updated: 16 November 2022
StataCorp LLC (StataCorp) strives to provide our users with exceptional products and services. To do so, we must collect personal information from you. This information is necessary to conduct business with our existing and potential customers. We collect and use this information only where we may legally do so. This policy explains what personal information we collect, how we use it, and what rights you have to that information.
These cookies are essential for our website to function and do not store any personally identifiable information. These cookies cannot be disabled.
Advertising and performance cookies
Please note: Clearing your browser cookies at any time will undo preferences saved here. The option selected here will apply only to the device you are currently using.