Stata 18 doubles down on the "workflow" aspect of data science. The and putpdf commands have been enhanced, making it seamless to export results, tables, and graphs directly into Word or PDF documents.
Previously, you needed third-party tools for literate programming with Stata. Now, has built-in support for Stata Markdown ( .smd files). You can write a document that interleaves narrative text, Stata code, and output (tables, graphs). One click executes the code and renders to HTML, PDF, or Word.
This article explores the key features, improvements, and new capabilities that make Stata 18 a powerful tool for researchers and analysts. What’s New in Stata 18?
Stata 18, released in April 2023, is a major update that emphasizes , customizable reporting , and advanced causal inference . This version introduces several powerful commands and graphical improvements designed to streamline the workflow for researchers in economics, medicine, and social sciences. Key Feature Highlights Stata 18
The push for reproducible research has led to significant improvements in Stata 18’s reporting toolset.
Stata 18 isn't just an incremental update; it's a significant leap forward in addressing modern data challenges. From the sophisticated to the essential Causal Inference tools, it ensures that researchers have the most rigorous methods at their fingertips.
// Example: Automating a Word Document Report putdocx begin putdocx paragraph, style("Heading1") putdocx text ("Automated Analysis Report") putdocx paragraph putdocx text ("The calculated mean baseline value is ") summarize baseline_var, meanonly putdocx text (string(r(mean), "%9.2f")), bold putdocx save report.docx, replace Use code with caution. 2. Graph Themes and Customization Stata 18 doubles down on the "workflow" aspect
If you are a who only runs regress , logit , and ttest on small datasets, Stata 17 will remain perfectly adequate. However, the Python bridge and interactive graphs might surprise you with their utility.
While dyndoc existed before, Stata 18 now supports a richer subset of Markdown, including LaTeX math inside Markdown tables. You can interleave Stata code and narrative text, outputting to HTML, PDF, or DOCX.
Stata 18 introduces several new priors to the bayes prefix, including: Now, has built-in support for Stata Markdown (
Meta-analysts rejoice. bayes: meta allows you to combine evidence from multiple studies with full control over prior distributions. This is particularly useful in pharmaceutical research, where regulatory agencies increasingly expect Bayesian synthesis of evidence.
It is now easier to tweak labels, legends, and colors without having to re-run complex code strings. 3. Reporting and Reproducibility
If you are currently using , the answer is a strong yes —provided your workflow includes any of the following: