Liz's Stata Guide

Commands: Pre/postfixes

This page covers pre- and post-fixes that can be used with most Stata commands.

The pages for most of commands in this category need to be written / rewritten

by; bys
Runs a command seperately for each value of a variable (prefix).
bys groupvar: reg depvar indvar

quietly; capture
Suppresses output from a command (prefix).
quietly reg depvar indvar   - or -
capture prog drop myprog

Runs a command only for observations that meet certain criteria (postfix).
reg depvar indvar if varx > 0

Creates and includes indicator variables in command (prefix).
xi: reg depvar i.groupvar

last modified: 19 April 2007