Stata Topics

Doug Hemken

March 2022

[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

Stata and R Markdown: the Statamarkdown package

Writing Stata Documentation Using R Markdown

Easy Stata Markdown: the stmd command

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 (see above).

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.

The stmd 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

Stata Graphics

Stata Graph Concepts

Introduction to the Graph Command

The Grammar of Graphics applied to Stata

Reconstructing Graphs - Tour by Example

538.com Poll trends

NY Times ISIS attacks

Stata Graph Detail

Data sources Stata Graphs

Graphical objects in Stata graphics

Graphical objects.do

Level of Measurment (Scales)

Structural Equation Modeling with Stata

Covariances model

Elementary Path Models

Using the SEM Builder

Confirmatory Factor Analysis

Measurement Invariance (part)

Measurement Invariance (do file)

Group Analysis

Reshaping Multiple Equation Tables

Programming Problems

Merging coefficients of variation into a data set

Postfile problems

Bootstrap mean and sd from an empirical distribution

Jackknife a regression coefficient

Centiles, posting scalar results

P values and significance from multiple tests

and just p values

Introductory workshop exercises

National Longitudinal Survey of Women exercises

Mendota Ice exercises