--- title: "Stata Topics" author: "Doug Hemken" date: "March 2022" output: html_document: includes: self_contained: no theme: null highlight: null toc: yes --- [[Workshops index](../index.html)] # Recentering, Rescaling, Standardizing Coefficients [Getting Standardized Coefficients Right (stdBeta)](stdBeta/docs/Getting%20Standardized%20Coefficients%20Right.pdf) 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. - [stdBeta.ado](stdBeta/stdBeta.ado) by transforming the data - [stdBeta.sthlp](stdBeta/stdBeta.sthlp) help file # Stata, Markdown, and Dynamic Documents ## Stata and R Markdown: the `Statamarkdown` package [Writing Stata Documentation Using R Markdown](Statamarkdown/stata-and-r-markdown.html) ## 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. - [Installation and Basic Use](stmd/Usage/stmdusage.html) - [Writing Dynamic Code Blocks](stmd/Usage/stmdcodeblocks.html) - [Code Block Options](stmd/Usage/stmdcodeoptions.html) - [Including Graphics](stmd/Usage/graphing.html) - [Including Mathematics](stmd/Usage/markdownmath.html) - [Report Templates](stmd/Usage/Repeated%20Reports.html) 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](stmd/Markdown/flexmark.html) # Stata Graphics ## Stata Graph Concepts [Introduction to the Graph Command](Grammar of Graphics/GraphCommand.html) [*The Grammar of Graphics* applied to Stata](Grammar of Graphics/StataGraphicsGrammar.html) ## Reconstructing Graphs - Tour by Example [538.com Poll trends](Grammar of Graphics/Thinking about Graphs.pdf) [NY Times ISIS attacks](Grammar of Graphics/ReconstructNYT.html) ## Stata Graph Detail [Data sources Stata Graphs](Grammar of Graphics/GraphDataSources.html)

Graphical objects in Stata graphics

Graphical objects.do

Level of Measurment (Scales)

### Coordinates [Coordinates - range](Grammar of Graphics/Coordinates/coordinates range.do) [Coordinates - order](Grammar of Graphics/Coordinates/coordinates order.do) [Coordinates - linear/log](Grammar of Graphics/Coordinates/coordinates logged.do) [Coordinates - polar](Grammar of Graphics/Coordinates/polar winters.do)

Text Annotations

# 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](SEM/multieq_tables.html) # 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