Stata Topics

Doug Hemken

October 2019

[Workshops index]

Recentering, Rescaling, Standardizing Coefficients

Getting Standardized Coefficients Right (stdBeta)

Download the following packages to your own ado location (type net query in the command box to see where this is).

From within Stata, use

net from https://www.ssc.wisc.edu/~hemken/Stataworkshops

and follow the links.

Post-estimation ado

stdParm.ado by post-estimation transformation

stdParm.sthlp help file

Some math for post-estimation centering and standardizing with notes

On the equality of variable-wise and term-wise recentering.

Re-estimation ado

From within Stata, type

search stdBeta

and follow the links.

Stata, Markdown, and Dynamic Documents

Beginning with Stata 15, you can write dynamic documents using Markdown, wholly within Stata. As of Stata 16, you can produce HTML, PDF, or Word documents this way.

For older versions of Stata you can write dynamic documents which include Stata code and output from the R or Rstudio interface.

In the following material, I try to explain some of your options, including some utility programs which ease the process of going from dynamic Markdown to final document.

Easy Stata Markdown: the stmd command

This command is intended to make dynamic Markdown documents easy to write, in the style of most other programming languages.

The rest is Markdown.

Stata's Dynamic Document Infrastructure

Official Stata includes a Markdown interpreter and commands to execute dynamic documents. Dig into the details to go beyond stmd.

Stata's Markdown - the Flexmark specification