Extra new options can be found in StataNow. Replace your copy of StataNow to check out the most recent additions.
Distinction in variations with switching therapies for panel knowledge. With the brand new xtswitchdid command, you may estimate event-study therapy results for panel knowledge utilizing the strategy of de Chaisemartin and D’Haultfœuille (2026). This heterogeneous difference-in-differences estimator is helpful when topics swap out and in of therapy or to totally different ranges of therapy. The therapy might be binary or multivalued. It’s also possible to take a look at for parallel developments and no anticipation of the therapy, plot the event-study therapy results, estimate results for particular paths, and estimate the typical whole impact.
Spatial error covariance buildings for multilevel fashions. The combined command now permits you to mannequin the correlation between errors as a operate of geographic or bodily distance. You may select from spatial exponential, spatial Gaussian, spatial spherical, and spatial energy covariance buildings. These buildings are helpful for knowledge collected at particular spatial areas, resembling agricultural discipline trials and ecological surveys. They will also be used for irregularly spaced longitudinal knowledge, typically known as intensive longitudinal knowledge, by treating time as a one-dimensional spatial area. You may incorporate a nugget impact to account for microscale variation and measurement error.
Frames within the Information Editor. When you may have a number of datasets in reminiscence, the Information Editor now permits you to view and edit knowledge in every body. As well as, you may copy and paste from one body to a different, save a snapshot in a single body and restore it in one other, handle present frames, and create new frames.
New priors for Bayesian evaluation. The bayes and bayesmh instructions now assist six new priors.
Two new half-distribution priors, the half-normal and location-scale half-t distribution, are helpful for positive-valued parameters resembling the dimensions parameters of the Laplace and Cauchy distributions or the usual deviation of the conventional distribution.
4 new square-root parameter prior distributions are additionally out there. The uniform, half-normal, location-scale half-t, and half-Cauchy distributions for the sq. root of a parameter are helpful for positive-valued mannequin parameters resembling variances.
Append PDFs. The putpdf command has a brand new append suboption that permits you to append a number of PDFs into one file.
We’ve additionally lately added new options which are out there to everybody with Stata 19 and StataNow 19.
Customizable tables enhancements. The accumulate suite of instructions now permits you to create and customise tables in new methods.
The brand new accumulate fromframe command permits you to accumulate outcomes from an information body moderately than from the saved outcomes after working a Stata command. You may then create and customise tables utilizing the collected knowledge.
The accumulate fashion cell command has a brand new lacking() possibility that permits you to management how lacking values are displayed. You may specify a customized label, or you may conceal the lacking values.
The accumulate fashion row cut up command has the brand new titles() and extraspace() choices. With titles(), you may specify the place dimension titles and factor-variable labels needs to be positioned within the row header. With extraspace(), you may specify additional area be positioned between row header columns.
accumulate now helps a brand new dimension, header_cell_contents, that permits you to apply fashion edits to dimension titles, factor-variable titles, and ranges straight. For instance, you may underline dimension titles or make factor-variable titles daring.
Impact measurement enchancment. The esize twosample command now helps the reverse choice to reverse the order of the teams when computing variations in means. When specified with the pbcorr possibility, this gives the identical estimate of point-biserial correlation that you simply acquire through the use of correlate.
For extra options of StataNow 19 and Stata 19, see https://www.stata.com/new-in-stata/options/.
You may sort replace all in your copy of StataNow or Stata 19 to get entry to those version-specific updates.
Reference
de Chaisemartin, C., and X. D’Haultfœuille. 2026. Distinction-in-differences estimators of intertemporal therapy results. Overview of Economics and Statistics. 108: 863-880. https://doi.org/10.1162/rest_a_01414.
