Programming & Scientific Computing · Statistical & BI Software

Advanced programming and automation in Stata

Public introduction · full guide in Eikos

Introduction

What this guide covers

Introduction Introduction Engineering and automation of statistical processes

Overview

Topics covered

  • Introduction
  • Advanced programming in Stata
  • Replacement of text and macro variables at low level
  • Internal dereferencing mechanics
  • Extended macro functions
  • Recursive dereferencing and evaluation of system variables

Related concepts

Main connections

  • Logistic regression
  • Linear algebra & matrices
  • Preprocessing pipelines & transform recipes
  • Variance & standard deviation
  • Mathematical optimization & gradients
  • Quantiles & percentiles

Compatible notation

Mathematical sample in LaTeX

The expression is rendered accessibly, with its LaTeX source preserved below.

Parser Stata (syntax)⟶ { varlist→Mapped in the local vector\textasciigrave varlist\textquoteright if/in→Mapped in the macros of subset\textasciigrave if\textquoteright, \textasciigrave in\textquoteright options→Initialization of specific locations for each option
View LaTeX source\text{Parser Stata (syntax)} \quad \longrightarrow \quad \begin{cases} \text{varlist} & \rightarrow \text{Mapped in the local vector} \text{\textasciigrave varlist\textquoteright} \\ \text{if/in} & \rightarrow \text{Mapped in the macros of subset} \text{\textasciigrave if\textquoteright, \textasciigrave in\textquoteright} \\ \text{options} & \rightarrow \text{Initialization of specific locations for each option} \end{cases}