THE FOLLOWING IS VERY LONG AND WAS OBTAINED BY STATA COMMAND HELP CONTENTS IT WAS CREATED IN OCTOBER 1999 FROM STATA 6.0 .- help for ^contents^ (manual: ^[U] 2 Resources for learning and using Stata^) .- Table of contents for on-line help ---------------------------------- Below is a table of contents arranged by subject. The line list . . . . . . . . . . . . . . . . . . . . . List values of variables [R] means to see help list to get information on how to list values of variables. The [R] at the end means that you can also look up this information in the Reference Manual. Unix users: See help help to learn how to page forward and backward through help files. Windows and Macintosh users: If you accessed this through the ^Help^ menu, use the scroll bars to move through help files. Press the ^Help!^ button for help on the on-line help system. Important note on updates ------------------------- The version of the files you have installed is ^Stata 6.0 base, January 1999, updated to STB-46, November 1998^ The Stata Technical Bulletin (STB) supplies bimonthly updates to Stata. The STB disk (or tape) adds new commands to your system and automatically updates the on-line help, including this entry. To install official updates from the STB, see help update. To install user-written commands from the STB or to list what you have already installed, see help net. For a summary of new additions, see help whatsnew. For more information on the STB, see help stb. For the latest news from StataCorp, see help news. .- Subject table of contents .- List of headings ---------------- General Keyboard use Command syntax Data manipulation and management Basic data commands Functions and expressions Dates Inputting and saving data Combining data Reshaping datasets Labeling, display formats, and notes Changing and renaming variables Examining data Miscellaneous data commands Utilities Basic utilities Error messages Saved results Internet Data types and memory Advanced utilities Graphics Statistics Basic statistics ANOVA and ANCOVA Linear regression and related maximum-likelihood regressions Logistic and probit regression Survival analysis Time series Cross-sectional time series (panel data) Auxiliary regression commands Tables for epidemiologists Analysis of survey data Transforms and normality tests Nonparametrics Factor analysis Do-it-yourself maximum-likelihood estimation Other statistics Matrix commands Programming Basics Program control Parsing and program arguments Console output Commonly used programming commands Debugging Advanced programming commands Windows and Macintosh Unix .- General ------- stata . . . . . . . . . . . . . . 2 Resources for learning and using Stata [U] stb . . . . . . . . . . . . . . . . . . . 2.4 The Stata Technical Bulletin [U] whatsnew . . . . . . . . . . . . . . . . . . . . . . . . . 1.3 What's new [U] help . . . . . . . . . . . . 8 Stata's on-line help and search facilities [U] search . . . . . . . . . . . . . . . . . . . . Search Stata documentation [R] update . . . . . . . . . . . . . 32 Using the Internet to keep up to date [U] net . . . . . . . . . . . . . . . 32 Using the Internet to keep up to date [U] news . . . . . . . . . . . . . . . . . . . . . . . . . Report Stata News [R] .- Keyboard use ------------ keyboard . . . . . . . . . . . . . . . . . . . . . . . . 13 Keyboard use [U] #review . . . . . . . . . . . . . . . . . . . . . Review previous commands [R] .- Command syntax -------------- language . . . . . . . . . . . . . . . . . . . . . . . 14 Language syntax [U] varlist (in language) . . . . . . . . . . . . . . . . . . . 14.4 varlists [U] by (in language) . . . . . . . . . . . . . . . 14.5 by varlist: construct [U] if (in language) . . . . . . . . . . . . . . . . . . . . . 14.1.3 if exp [U] in (in language) . . . . . . . . . . . . . . . . . . . . 14.1.4 in range [U] numlist (in language) . . . . . . . . . . . . . . . . . . . 14.1.8 numlist [U] options (in language) . . . . . . . . . . . . . . . . . . . 14.1.7 options [U] using (in language) . . . . . . . . . . . . . . . . . . 14 Language syntax [U] weights . . . . . . . . . . . . . . . . . . . . . . . . . . 14.1.6 weight [U] .- Data manipulation and management -------------------------------- Headings in this section ------------------------ Basic data commands Functions and expressions Dates Inputting and saving data Combining data Reshaping datasets Labeling, display formats, and notes Changing and renaming variables Examining data Miscellaneous data commands Basic data commands ------------------- describe . . . . . . . . . Describe contents of data in memory or on disk [R] display . . . . . . . . . . . . . . . . . Substitute for a hand calculator [R] drop . . . . . . . . . . . . . . . . Eliminate variables or observations [R] edit . . . . Edit and list data using data editor (Windows and Mac only) [R] egen . . . . . . . . . . . . . . . . . . . . . . . Extensions to generate [R] generate . . . . . . . . . . . . . Create or change contents of variable [R] list . . . . . . . . . . . . . . . . . . . . . . List values of variables [R] memory . . . . . . . . . . . . . . . . . . . . Memory size considerations [R] obs . . . . . . . . . . . . . . Increase number of observations in dataset [R] sort . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Sort data [R] Functions and expressions ------------------------- exp (in language) . . . . . . . . . . . . . . 16 Functions and expressions [U] operators . . . . . . . . . . . . . . . . . . 16 Functions and expressions [U] functions . . . . . . . . . . . . . . . . . . 16 Functions and expressions [U] egen . . . . . . . . . . . . . . . . . . . . . . . Extensions to generate [R] Dates ----- dfmt . . . . . . . . . . . . . . . . . . . . . . . . 15.5.2 Date formats [U] functions . . . . . . . . . . . . . . . . . . 16 Functions and expressions [U] dates . . . . . . . . . . . . . . . . . 27 Commands for dealing with dates [U] Inputting and saving data ------------------------- edit . . . . Edit and list data using data editor (Windows and Mac only) [R] infiling . . . . . . . . . . Quick reference for reading data into Stata [R] insheet . . . . . . . . . Read ASCII (text) data created by a spreadsheet [R] infile1 . . . . . . . . . . . . . . . . Read unformatted ASCII (text) data [R] infix . . . . . . . . . . . . . . . Read ASCII (text) data in fixed format [R] infile2 . . . . . Read ASCII (text) data in fixed format with a dictionary [R] input . . . . . . . . . . . . . . . . . . . . . . Enter data from keyboard [R] outfile . . . . . . . . . . . . . . . . . . . . Write ASCII-format dataset [R] outsheet . . . . . . . . . . . . . . . . Write spreadsheet-style dataset [R] save . . . . . . . . . . . . . . . . . . . . . . . Save and use datasets [R] Combining data -------------- append . . . . . . . . . . . . . . . . . . . . . . . . . Append datasets [R] merge . . . . . . . . . . . . . . . . . . . . . . . . . . . Merge datasets [R] joinby . . . . . . . . . . . Form all pairwise combinations within groups [R] Reshaping datasets ------------------ collapse . . . . . . . . . . . . . . Make dataset of means, medians, etc. [R] compress . . . . . . . . . . . . . . . . . . . . Compress data in memory [R] contract . . . . . . . . . . . . . . . . . . Make dataset of frequencies [R] cross . . . . . . . . . . Form every pairwise combination of two datasets [R] expand . . . . . . . . . . . . . . . . . . . . . . Duplicate observations [R] fillin . . . . . . . . . . . . . . . . . . . . . . Rectangularize dataset [R] obs . . . . . . . . . . . . . . Increase number of observations in dataset [R] reshape . . . . . . . . . . Convert data from wide to long and vice versa [R] separate . . . . . . . . . . . . . . . . . . . Create separate variables [R] stack . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Stack data [R] xpose . . . . . . . . . . . . . . . Interchange observations and variables [R] Labeling, display formats, and notes ------------------------------------ label . . . . . . . . . . . . . . . . . . . . . . . . . Label manipulation [R] format . . . . . . . . . . . . . . . . . Specify variable display format [R] notes . . . . . . . . . . . . . . . . . . . . . . . . Place notes in data [R] Changing and renaming variables ------------------------------- encode . . . . . . . . . . . . Encode string into numeric and vice versa [R] generate . . . . . . . . . . . . . Create or change contents of variable [R] mvencode . . . . . . Change missing to coded missing value and vice versa [R] order . . . . . . . . . . . . . . . . . . . . Reorder variables in dataset [R] recode . . . . . . . . . . . . . . . . . . . Recode categorical variable [R] rename . . . . . . . . . . . . . . . . . . . . . . . . . Rename variable [R] Examining data -------------- cf . . . . . . . . . . . . . . . . . . . . . . . . . Compare two datasets [R] codebook . . . . . . . Produce a codebook describing the contents of data [R] compare . . . . . . . . . . . . . . . . . . . . . . Compare two variables [R] count . . . . . . . . . Count observations satisfying specified condition [R] gsort . . . . . . . . . . . . . . . . . . . Ascending and descending sort [R] inspect . . . . . . . . . Display simple summary of data's characteristics [R] pctile . . . . . . . . . . . . . . Create variable containing percentiles [R] summarize . . . . . . . . . . . . . . . . . . . . . . . Summary statistics [R] svytab . . . . . . . . . . . . . . . . . . . . . . Tables for survey data [R] table . . . . . . . . . . . . . . . . . . . . Tables of summary statistics [R] tabdisp . . . . . . . . . . . . . . . . . . . . . . . . . . Display tables [R] tabsum . . . . . . . . . . One- and two-way tables of summary statistics [R] tabulate . . . . . . . . . . . . . One- and two-way tables of frequencies [R] xtdes . . . . . . . . . . . . . . . . . . . . Describe pattern of xt data [R] Miscellaneous data commands --------------------------- ipolate . . . . . . . . . . . . Linearly interpolate (extrapolate) values [R] range . . . . . . . . . . . . Numerical ranges, derivatives, and integrals [R] sample . . . . . . . . . . . . . . . . . . . . . . . . Draw random sample [R] .- Utilities --------- Headings in this section ------------------------ Basic utilities Error messages Saved results Internet Data types and memory Advanced utilities Basic utilities --------------- winhelp . . . . . . . . . . . 8 Stata's on-line help and search facilities [U] help . . . . . . . . . . . . . . . . . . . . . . . . Obtain on-line help [R] search . . . . . . . . . . . . . . . . . . . . Search Stata documentation [R] about . . . . . . . . . . . Display information about my version of Stata [R] by . . . . . . . . . . . . . Repeat Stata command on subsets of the data [R] do . . . . . . . . . . . . . . . . . . . . . Execute commands from a file [R] doedit . . . . Edit do-files and other text files (Windows and Mac only) [R] exit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Exit Stata [R] level . . . . . . . . . . . . . . . . . . . . Set default confidence level [R] log . . . . . . . . . . . . . . . . Echo copy of session to file or device [R] obs . . . . . . . . . . . . . . Increase number of observations in dataset [R] #review . . . . . . . . . . . . . . . . . . . . . Review previous command [R] tutorials . . . . . . . . . . . . . . Quick reference for Stata tutorials [R] Error messages -------------- rmsg . . . . . . . . . . . . . . . . . . . . . . . . . . Return messages [R] search . . . . . . . . . . . . . . . . . . . . Search Stata documentation [R] Saved results ------------- return . . . . . . . . . . . . . . . . . . . . . . . Return saved results [R] estimates . . . . . . . . . . . . . Post and redisplay estimation results [R] Internet -------- checksum . . . . . . . . . . . . . . . . . . . Calculate checksum of file [R] net . . . . . . . . Install and manage user-written additions from the net [R] news . . . . . . . . . . . . . . . . . . . . . . . . . Report Stata News [R] stb . . . . . . . . . . . . . . . . . . . . STB installation instructions [R] update . . . . . . . . . . . . . 32 Using the Internet to keep up to date [U] Data types and memory --------------------- datatypes . . . . . . . . . . . . . . . . . Quick reference for data types [R] compress . . . . . . . . . . . . . . . . . . . . Compress data in memory [R] limits . . . . . . . . . . . . . . . . . . . . Quick reference for limits [R] matsize . . . . . . . . . . Set the maximum number of variables in a model [R] memory . . . . . . . . . . . . . . . . . . . . Memory size considerations [R] recast . . . . . . . . . . . . . . . . . Change storage type of variable [R] Advanced utilities ------------------ assert . . . . . . . . . . . . . . . . . . . . . . Verify truth of claim [R] cd . . . . . . . . . . . . . . . . . . . . . . . . . . . Change directory [R] checksum . . . . . . . . . . . . . . . . . . . Calculate checksum of file [R] copy . . . . . . . . . . . . . . . . . . . . . Copy file from disk or URL [R] dir . . . . . . . . . . . . . . . . . . . . . . . . . . Display filenames [R] discard . . . . . . . . . . . . . . . . Drop automatically loaded programs [R] erase . . . . . . . . . . . . . . . . . . . . . . . . . Erase a disk file [R] for . . . . . . . . . . . . . . . . . . . . . . . . . Repeat Stata command [R] mkdir . . . . . . . . . . . . . . . . . . . . . . . . . . Create directory [R] query . . . . . . . . . . . . . . . . . . . . . Display system parameters [R] quietly . . . . . . . . . . . . Quietly and noisily perform Stata command [R] set . . . . . . . . . . . . . . . . Quick reference for system parameters [R] shell . . . . . . . . . . . . . . . . Temporarily invoke operating system [R] sysdir . . . . . . . . . . . . . . . . . . . . . Set system directories [R] touch . . . . . . . . . Change a file's type and creator (Macintosh only) [R] type . . . . . . . . . . . . . . . . . . . . . Display contents of files [R] which . . . . . . . . . . . . Display location and version for an ado-file [R] .- Graphics -------- graph . . . . . . . . . . . . . . . . . . . . . . Summary of graph command [G] gphdot . . . . . . . . . . . . . . . . . . . . . . Print graphs in Stata [G] gphprint . . . . . . . . . . . . . . . . . . . . . . . . . graph printing [G] gph . . . . . . . . . . . . . . . . . . . . Low-level graphics programming [G] boxcox . . . . . . . . . . . . . . . . Box-Cox transform toward normality [R] corrgram . . . . . . . . . . . . . . . . . . . . . . . . . . Correlogram [R] cumul . . . . . . . . . . . . . . . . . . . . . . Cumulative distribution [R] cumsp . . . . . . . . . . . . . . . . . . Cumulative spectral distribution [R] cusum . . . . . . . . . . . . . Cusum plots and tests for binary variables [R] diagplots . . . . . . . . . . . . . . . . Distributional diagnostic plots [R] dotplot . . . . . . . . . . . . . . . . . . . . . Comparative scatterplots [R] factor . . . . . . . . . . . . . Principal components and factor analysis [R] grmeanby . . . . . . . . Graph means and medians by categorical variables [R] hadimvo . . . . . . . . . . . . . . . . . . Identify multivariate outliers [R] hilite . . . . . . Highlight a subset of points in a two-way scatterplot [R] hist . . . . . . . . . . . . . . . . . . . Categorical variable histogram [R] kdensity . . . . . . . . . . . . . . Univariate kernel density estimation [R] ksm . . . . . . . . . . . . . . . . . . . . . . Smoothing including lowess [R] lv . . . . . . . . . . . . . . . . . . . . . . . . Letter-value displays [R] mkspline . . . . . . . . . . . . . . . . . . . Linear spline construction [R] pergram . . . . . . . . . . . . . . . . . . . . . . . . . . . Periodogram [R] plot . . . . . . . . . . . . Draw scatterplot using typewriter characters [R] qc . . . . . . . . . . . . . . . . . . . . . . . . Quality control charts [R] regdiag . . . . . . . . . . . . . . . . . . . . . . Regression diagnostics [R] serrbar . . . . . . . . . . . . . . . . . . Graph standard error bar chart [R] smooth . . . . . . . . . . . . . . . . . . . . Robust nonlinear smoother [R] spikeplt . . . . . . . . . . . . . . . . . . . Spikeplots and rootograms [R] stphplot . Graphical assessment of the Cox proportional hazard assumption [R] streg . Graph estimated survival, hazard, and cumulative hazard functions [R] sts . . . . . . . . . . . . . . . . . . . . . Graph the survivor function [R] stem . . . . . . . . . . . . . . . . . . . . . . . Stem-and-leaf displays [R] wntestb . . . . . . . . Bartlett's periodogram-based test for white noise [R] xcorr . . . . . . . . . . . . Cross-correlation for bivariate time series [R] .- Statistics ---------- Headings in this section ------------------------ Basic statistics ANOVA and ANCOVA Linear regression and related maximum-likelihood regressions Logistic and probit regression Survival analysis Time series Cross-sectional time series (panel data) Auxiliary regression commands Tables for epidemiologists Analysis of survey data Transforms and normality tests Nonparametrics Factor analysis Do-it-yourself maximum-likelihood estimation Other statistics Basic statistics ---------------- egen . . . . . . . . . . . . . . . . . . . . . . . Extensions to generate [R] anova . . . . . . . . . . . . . . . . Analysis of variance and covariance [R] oneway . . . . . . . . . . . . . . . . . . One-way analysis of variance [R] bitest . . . . . . . . . . . . . . . . . . . . Binomial probability test [R] ci . . . . . . . Confidence intervals for means, proportions, and counts [R] correlate . . . . . Correlations (covariances) of variables or estimators [R] immed . . . . . . . . . . . . . . . . . . . . . . . 22 Immediate commands [U] logistic . . . . . . . . . . . . . . . . . . . . . . Logistic regression [R] prtest . . . . . . . . . . . . . One- and two-sample tests of proportions [R] regress . . . . . . . . . . . . . . . . . . . . . . . . Linear regression [R] predict . . . . . Obtain predictions, residuals, etc., after estimation [R] regdiag . . . . . . . . . . . . . . . . . . . . . Regression diagnostics [R] test . . . . . . . . . . Test linear hypotheses after model estimation [R] sampsi . . . . . . . . . . . . . . . Sample size and power determination [R] sdtest . . . . . . . . . . . . . . . . . . . . Variance comparison tests [R] summarize . . . . . . . . . . . . . . . . . . . . . . . Summary statistics [R] table . . . . . . . . . . . . . . . . . . . . Tables of summary statistics [R] tabsum . . . . . . . . . . One- and two-way tables of summary statistics [R] tabulate . . . . . . . . . . . . . One- and two-way tables of frequencies [R] ttest . . . . . . . . . . . . . . . . . . . . . . . Mean comparison tests [R] ANOVA and ANCOVA ---------------- anova . . . . . . . . . . . . . . . . Analysis of variance and covariance [R] loneway . . . . . . . Large one-way ANOVA, random effects, and reliability [R] oneway . . . . . . . . . . . . . . . . . . . One-way analysis of variance [R] Linear regression and related maximum-likelihood regressions ------------------------------------------------------------ regress . . . . . . . . . . . . . . . . . . . . . . . . Linear regression [R] est . . . . . . . . . . . . . . 23 Estimation and post-estimation commands [U] postest . . . . . . . . . . . . 23 Estimation and post-estimation commands [U] areg . . . . . . . . . Linear regression with a large dummy-variable set [R] cnsreg . . . . . . . . . . . . . . . . . . Constrained linear regression [R] cox . . . . . . . . . . . . . . . Estimate Cox proportional hazards model [R] eivreg . . . . . . . . . . . . . . . . . . Errors-in-variables regression [R] fracpoly . . . . . . . . . . . . . . . . Fractional polynomial regression [R] glm . . . . . . . . . . . . . . . . . . . . . . Generalized linear models [R] heckman . . . . . . . . . . . . . . . . . . . . . Heckman selection model [R] impute . . . . . . . . . . . . . . . . . . . . . . Predict missing values [R] ivreg . . . Instrumental variables and two-stage least squares regression [R] ksm . . . . . . . . . . . . . . . . . . . . . . Smoothing including lowess [R] mvreg . . . . . . . . . . . . . . . . . . . . . . Multivariate regression [R] nbreg . . . . . . . . . . . . . . . . . . . . Negative binomial regression [R] newey . . . . . . . . . . . . . Regression with Newey-West standard errors [R] nl . . . . . . . . . . . . . . . . . . . . . . . Nonlinear least squares [R] orthog . . . . . . . . . Orthogonal variables and orthogonal polynomials [R] poisson . . . . . . . . . . . . . . . . . . . . . . . . Poisson regression [R] prais . . . . . . . . . . . . Prais-Winsten and Cochrane-Orcutt regression [R] qreg . . . . . . . . . . . . . . . Quantile (including median) regression [R] reg3 . . . . Three-stage estimation for systems of simultaneous equations [R] regdiag . . . . . . . . . . . . . . . . . . . . . . Regression diagnostics [R] rreg . . . . . . . . . . . . . . . . . . . . . . . . . Robust regression [R] smooth . . . . . . . . . . . . . . . . . . . . Robust nonlinear smoother [R] stcox . . . . . . . . . . . . . . Estimate Cox proportional hazards model [R] streg . . . . . . . . . . . . . . . . Estimate parametric survival models [R] sureg . . . . . . . . . . . . . . Zellner's seemingly unrelated regression [R] svy . . . . . . . . . . . . . Estimation commands for complex survey data [R] sw . . . . . . . . . . . . . . . . Stepwise maximum-likelihood estimation [R] tobit . . . . . . . . . . Tobit, censored-normal, and interval regression [R] vwls . . . . . . . . . . . . . . . . . . Variance-weighted least squares [R] weibull . . . . Estimate Weibull and other parametric survival time models [R] xtgee . . . . . . Estimate population-averaged panel-data models using GEE [R] xtgls . . . . . . . . . . . . . . . . Estimate panel-data models using GLS [R] xtintreg . . . . . . . . . Random-effects interval data regression models [R] xtpois . . Fixed-, random-effects, and population-averaged Poisson models [R] xtrchh . . . . . . . . . . . . Hildreth-Houck random coefficients models [R] xtreg . Fixed-, between-, random-effects, and pop.-averaged linear models [R] xttobit . . . . . . . . . . . . . . . . . . . Random-effects tobit models [R] zip . . . . . . . . . . Zero-inflated Poisson and negative binomial models [R] Logistic regression and probit ------------------------------ logistic . . . . . . . . . . . . . . . . . . . . . . Logistic regression [R] est . . . . . . . . . . . . . . 23 Estimation and post-estimation commands [U] postest . . . . . . . . . . . . 23 Estimation and post-estimation commands [U] biprobit . . . . . . . . . . . . . . . . . . . . Bivariate probit models [R] clogit . . . . . . . . . Conditional (fixed-effects) logistic regression [R] cloglog . . . . . . . Maximum-likelihood complementary log-log estimation [R] constraint . . . . . . . . . . . . . . . . . Define and list constraints [R] glogit . . . . . . . . . . . . . . . . . Logit and probit on grouped data [R] heckprob . . . . . . Maximum-likelihood probit estimation with selection [R] hetprob . . . . . . . Maximum-likelihood heteroscedastic probit estimation [R] logit . . . . . . . . . . . . . . . . Maximum-likelihood logit estimation [R] mlogit . . . . . . . . . . . Multinomial (polytomous) logistic regression [R] ologit . . . . . . . . . . . Maximum-likelihood ordered logit estimation [R] oprobit . . . . . . . . . . . Maximum-likelihood ordered probit estimation [R] probit . . . . . . . . . . . . . . . Maximum-likelihood probit estimation [R] scobit . . . . . . . . . . . . Maximum-likelihood skewed logit estimation [R] svy . . . . . . . . . . . . . Estimation commands for complex survey data [R] sw . . . . . . . . . . . . . . . . Stepwise maximum-likelihood estimation [R] xtclog . . . . . . Random-effects and population-averaged cloglog models [R] xtgee . . . . . . Estimate population-averaged panel-data models using GEE [R] xtlogit . . . Fixed- and random-effects & population-averaged logit models [R] xtprobit . . . . . . Random-effects and population-averaged probit models [R] Survival analysis ----------------- cox . . . . . . . . . . . . . . . Estimate Cox proportional hazards model [R] ct . . . . . . . . . . . . . . . . . . . . . . . . . . . Count-time data [R] ctset . . . . . . . . . . . . . . . . . Declare data to be count-time data [R] cttost . . . . . . . . . Convert count-time data to be survival-time data [R] ltable . . . . . . . . . . . . . . . . . . Life tables for survival data [R] snapspan . . . . . . . . . . . . Convert snapshot data to time-span data [R] st . . . . . . . . . . . . . . . . . . . . . . . . . . Survival-time data [R] st_is . . . . . . . . . . . Survival analysis subroutines for programmers [R] stbase . . . . . . . . . . . . . . . . . . . . . . Form baseline dataset [R] stcox . . . . . . . . . . . . . . Estimate Cox proportional hazards model [R] stdes . . . . . . . . . . . . . . . . . . . . Describe survival-time data [R] stfill . . . . . . . . . Fill in by carrying forward values of covariates [R] stgen . . . . . . . . . . . Generate variables reflecting entire histories [R] stir . . . . . . . . . . . . . . . . . . Report incidence-rate comparison [R] stphplot . Graphical assessment of the Cox proportional hazard assumption [R] strate . . . . . . . . . . . . . . Tabulate failure rates and rate ratios [R] streg . . . . . . . . . . . . . . . . Estimate parametric survival models [R] sts . . Generate, graph, list, & test the survivor & cum. hazard function [R] stset . . . . . . . . . . . . . . . Declare data to be survival-time data [R] stsplit . . . . . . . . . . . . . . . . . Split and join time-span records [R] stsum . . . . . . . . . . . . . . . . . . . . Summarize survival-time data [R] sttocc . . . . . . . . . Convert survival-time data to case-control data [R] sttoct . . . . . . . . . . Convert survival-time data to count-time data [R] stvary . . . . . . . . . . . . . . Report which variables vary over time [R] sw . . . . . . . . . . . . . . . . Stepwise maximum-likelihood estimation [R] weibull . . . . Estimate Weibull and other parametric survival time models [R] Time series ----------- varlist . . . . . . . . . . . . . . . . . . . 14.4.3 Time-series varlists [U] tfmt . . . . . . . . . . . . . . . . . . . . . 15.5.3 Time-series formats [U] tdates . . . . . . . . . . . . . . . . . . . . . . 27.3 Time-series dates [U] arch . Autoregressive conditional heteroscedasticity family of estimators [R] arima . . . . . . . . . . Autoregressive integrated moving average models [R] corrgram . . . . . . . . . . . . . . . . . . . . . . . . . . Correlogram [R] cumsp . . . . . . . . . . . . . . . . . . Cumulative spectral distribution [R] dfuller . . . . . . . . . . . Augmented Dickey-Fuller test for unit roots [R] pergram . . . . . . . . . . . . . . . . . . . . . . . . . . . Periodogram [R] pperron . . . . . . . . . . . . . . . Phillips-Perron test for unit roots [R] prais . . . . . . . . . . . . Prais-Winsten and Cochrane-Orcutt regression [R] spikeplt . . . . . . . . . . . . . . . . . . . Spike plots and rootograms [R] tsreport . . . Report time-series aspects of dataset or estimation sample [R] tsrevar . . . . . . . . . . . . Time series operator programming command [R] tsset . . . . . . . . . . . . . . . . Declare data to be time-series data [R] wntestb . . . . . . . . Bartlett's periodogram-based test for white noise [R] wntestq . . . . . . . . . . . . . . Portmanteau (Q) test for white noise [R] xcorr . . . . . . . . . . . . Cross-correlogram for bivariate time series [R] Cross-sectional time series (panel data) ---------------------------------------- quadchk . . . . . . . . . . Check sensitivity of quadrature approximation [R] xt . . . . . . . . . . . . . . . . . Cross-sectional time-series analysis [R] xtclog . . . . . . Random-effects and population-averaged cloglog models [R] xtdata . . . . . . . . . . . . Faster specification searches with xt data [R] xtdes . . . . . . . . . . . . . . . . . . . . Describe pattern of xt data [R] xtgee . . . . . . Estimate population-averaged panel-data models using GEE [R] xtgls . . . . . . . . . . . . . . . . Estimate panel-data models using GLS [R] xtintreg . . . . . . . . . Random-effects interval data regression models [R] xtlogit . . . Fixed- and random-effects & population-averaged logit models [R] xtnbreg . . Fixed- and random-effects & pop.-averaged neg. binomial models [R] xtpois . . Fixed- and random-effects & population-averaged Poisson models [R] xtprobit . . . . . . Random-effects and population-averaged probit models [R] xtrchh . . . . . . . . . . . . Hildreth-Houck random coefficients models [R] xtreg . . Fixed-, between-, & random-effects & pop.-averaged linear models [R] xtsum . . . . . . . . . . . . . . . . . . . . . . . . . Summarize xt data [R] xttab . . . . . . . . . . . . . . . . . . . . . . . . . . Tabulate xt data [R] xttobit . . . . . . . . . . . . . . . . . . . Random-effects tobit models [R] Auxiliary regression commands ----------------------------- est . . . . . . . . . . . . . . 23 Estimation and post-estimation commands [U] postest . . . . . . . . . . . . 23 Estimation and post-estimation commands [U] adjust . . . . . . . . . . . . . Tables of adjusted means and proportions [R] constraint . . . . . . . . . . . . . . . . . Define and list constraints [R] correlate . . . . . Correlations (covariances) of variables or estimators [R] hausman . . . . . . . . . . . . . . . . . . . . Hausman specification test [R] lincom . . . . . . . . . . . . . . . . Linear combinations of estimators [R] linktest . . . . . . . Specification link test for single-equation models [R] lrtest . . . . . . . . . . . Likelihood-ratio test after model estimation [R] maximize . . . . . . . . . . . . . . . Details of iterative maximization [R] mkspline . . . . . . . . . . . . . . . . . . . Linear spline construction [R] predict . . . . . . Obtain predictions, residuals, etc., after estimation [R] regdiag . . . . . . . . . . . . . . . . . . . . . . Regression diagnostics [R] _robust . . . . . . . . . . . . . . . . . . . . Robust variance estimates [R] test . . . . . . . . . . . Test linear hypotheses after model estimation [R] testnl . . . . . . . . . Test nonlinear hypotheses after model estimation [R] vce . . . . . . . . . . . . . Display covariance matrix of the estimators [R] xi . . . . . . . . . . . . . . . . . . . . . . . . Interaction expansion [R] Tables for epidemiologists -------------------------- dstdize . . . . . . . . . . . . . . . Direct and indirect standardization [R] epitab . . . . . . . . . . . . . . . . . . . . Tables for epidemiologists [R] st . . . . . . . . . . . . . . . . . . . . . . . . . . Survival-time data [R] tabulate . . . . . . . . . . . . . One- and two-way tables of frequencies [R] symmetry . . . . . . . . . . . . Symmetry and marginal homogeneity tests [R] Analysis of survey data ----------------------- svy . . . . . . . . . . . . . . . . . . . Introduction to survey commands [R] svy . . . . . . . . . . . . . Estimation commands for complex survey data [R] svyintrg . . . . . . . Interval and censored regression for survey data [R] svyivreg . . . . . . Instrumental variables regression for survey data [R] svylogit . . . . . . . . . . . . . Logistic regression for survey data [R] svymlog . . . . . . . . Multinomial logistic regression for survey data [R] svyolog . . . . . . . . . . Ordered logistic regression for survey data [R] svyoprob . . . . . . . . . . . . Ordered probit models for survey data [R] svypois . . . . . . . . . . . . . . . Poisson regression for survey data [R] svyprobt . . . . . . . . . . . . . . . . Probit models for survey data [R] svyreg . . . . . . . . . . . . . . . Linear regression for survey data [R] svydes . . . . . . . . . . . . . . . . . . . . . . . Describe survey data [R] svylc . . . . . . . . Estimate linear combinations after survey estimation [R] svymean . Estimate means, totals, ratios, and proportions for survey data [R] svyset . . . . . . . . . . . . . . . . . . Set variables for survey data [R] svytab . . . . . . . . . . . . . . . . . . . . . . Tables for survey data [R] svytest . . . . . . . . . . Test linear hypotheses after survey estimation [R] _robust . . . . . . . . . . . . . . . . . . . . Robust variance estimates [R] Transforms and normality tests ------------------------------ boxcox . . . . . . . . . . . . . . . . Box-Cox transform toward normality [R] fracpoly . . . . . . . . . . . . . . . . Fractional polynomial regression [R] ladder . . . . . . . . . . . . . . . . . . . . . . . . . Ladder of powers [R] lnskew0 . . . . . . . . . . . Find zero-skewness log or Box-Cox transform [R] sktest . . . . . . . . . . . . . Skewness and kurtosis test for normality [R] swilk . . . . . . . . Shapiro-Wilk and Shapiro-Francia tests for normality [R] Nonparametrics -------------- bstrap . . . . . . . . . . . . . . . . Bootstrap sampling and estimation [R] ksmirnov . . . . . . . Kolmogorov-Smirnov equality of distributions test [R] kwallis . . . . . . . . . Kruskal-Wallis equality of populations rank test [R] nptrend . . . . . . . . . . . . . . . Test for trend across ordered groups [R] qreg . . . . . . . . . . . . . . . Quantile (including median) regression [R] runtest . . . . . . . . . . . . . . . . . . . . . . Test for random order [R] signrank . . . . . . . . . . . . . . . . . . . . . . Sign and rank tests [R] simul . . . . . . . . . . . . . . . . . . . . . . Monte Carlo simulations [R] spearman . . . . . . . . . . . . . Spearman's and Kendall's correlations [R] symmetry . . . . . . . . . . . . Symmetry and marginal homogeneity tests [R] Factor analysis --------------- factor . . . . . . . . . . . . . Principal components and factor analysis [R] alpha . . . . . . . . . . . . . . . . . . . . . . . . . . Cronbach's alpha [R] canon . . . . . . . . . . . . . . . . . . . . . . . Canonical correlations [R] impute . . . . . . . . . . . . . . . . . . . . . . Predict missing values [R] Do-it-yourself maximum-likelihood estimation -------------------------------------------- ml . . . . . . . . . . . . . . . . . . . . Maximum-likelihood estimation [R] mleval . . . . . . . . Programs for use by ml log-likelihood evaluators [R] mlmethod . . . . . . . . User-written log-likelihood evaluator programs [R] matrix . . . . . . . . . . . . . . . . . Introduction to matrix commands [R] Other statistics ---------------- alpha . . . . . . . . . . . . . . . . . . . . . . . . . . Cronbach's alpha [R] brier . . . . . . . . . . . . . . . . . . . . . Brier score decomposition [R] bstrap . . . . . . . . . . . . . . . . Bootstrap sampling and estimation [R] canon . . . . . . . . . . . . . . . . . . . . . . . Canonical correlations [R] centile . . . . . . . . . . . . . . Report centile and confidence interval [R] hotel . . . . . . . . . . . . Hotelling's T-squared generalized means test [R] impute . . . . . . . . . . . . . . . . . . . . . . Predict missing values [R] kappa . . . . . . . . . . . . . . . . . . . . . . . . Interrater agreement [R] kdensity . . . . . . . . . . . . . . Univariate kernel density estimation [R] means . . . . . . . . . . . . . Arithmetic, geometric, and harmonic means [R] pcorr . . . . . . . . . . . . . . . . . . Partial correlation coefficients [R] pctile . . . . . . . . . . . . . . Create variable containing percentiles [R] range . . . . . . . . . . . . Numerical ranges, derivatives, and integrals [R] simul . . . . . . . . . . . . . . . . . . . . . . Monte Carlo simulations [R] .- Matrix commands --------------- matrix . . . . . . . . . . . . . . . . . Introduction to matrix commands [R] matoper . . . . . . . . . . . . . . . . . . . . . . 17.7 Matrix operators [U] matfcns . . . . . . . . . . . . . . . . . . . . . . 17.8 Matrix functions [U] mataccum . . . . . . . . . . . . . . . . . . Form cross-product matrices [R] matconst . . . . . . . . . . . . . . . . . . . . . Constrained estimation [R] matget . . . . . . . . . . . . . . . . . . . . . . Access system matrices [R] matrname . . . . . . . . . . . . . . . . . . . . . Name rows and columns [R] matscore . . . . . . . . . . . . . . Score data from coefficient vectors [R] matsize . . . . . . . . . . Set the maximum number of variables in a model [R] matsvd . . . . . . . . . . . . . . . . . . . Singular value decomposition [R] matsym . . . . . . . . . . Eigenvalues and vectors of symmetric matrices [R] matutil . . . . . . . . . . . . . . . . . List, rename, and drop matrices [R] mkmat . . . . . . . . . . . . . Convert variables to matrix and vice versa [R] estimates . . . . . . . . . . . . . Post and redisplay estimation results [R] ml . . . . . . . . . . . . . . . . . . . . Maximum-likelihood estimation [R] .- Programming ----------- Headings in this section ------------------------ Basics Program control Parsing and program arguments Console output Commonly used programming commands Debugging Advanced programming commands Basics ------ program . . . . . . . . . . . . . . . . . . Define and manipulate programs [R] doedit . . . . Edit do-files and other text files (Windows and Mac only) [R] macro . . . . . . . . . . . . . . . . . Macro definition and manipulation [R] return . . . . . . . . . . . . . . . . . . . . . . . Return saved results [R] Program control --------------- version . . . . . . . . . . . . . . . . . . . . . . . . . Version control [R] ifcmd . . . . . . . . . . . . . . . . . . . . . . . if programming command [R] while . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Looping [R] error . . . . . . . . . . . . . . . Display generic error message and exit [R] capture . . . . . . . . . . . . . . . . . . . . . . . Capture return code [R] Parsing and program arguments ----------------------------- syntax . . . . . . . . . . . . . . . . . . . . . . . . Parse Stata syntax [R] confirm . . . . . . . . . . . . . . . . . . . . . . Argument verification [R] gettoken . . . . . . . . . . . . . . . . . . . . . . . Low-level parsing [R] nlist . . . . . . . . . . . . . . . . . . . . . . . . Parse numeric lists [R] tokenize . . . . . . . . . . . . . . . . . . . Divide strings into tokens [R] unab . . . . . . . . . . . . . . . . . . . . . Unabbreviate variable list [R] Console output -------------- display . . . . . . . . . Display strings and values of scalar expressions [R] tabdisp . . . . . . . . . . . . . . . . . . . . . . . . . . Display tables [R] Commonly used programming commands ---------------------------------- #delimit . . . . . . . . . . . . . . . . . . . . . . . . Change delimiter [R] exit . . . . . . . . . . . . . . . . . . . Exit from a program or do-file [R] quietly . . . . . . . . . . . . Quietly and noisily perform Stata command [R] mark . . . . . . . . . . . . . . . . . . Mark observations for inclusion [R] more . . . . . . . . . . . . . . . . . . . . Pause until key is depressed [R] preserve . . . . . . . . . . . . . . . . . . . Preserve and restore data [R] matrix . . . . . . . . . . . . . . . . . Introduction to matrix commands [R] scalar . . . . . . . . . . . . . . . . . . . . . . . . . Scalar variables [R] tsrevar . . . . . . . . . . . . . Time-series operator programming command [R] Debugging --------- beep . . . . . . . . . . . . . . . . . . . . . Make computer emit a beep [R] pause . . . . . . . . . . . . . . . . . . . . . Program debugging command [R] program . . . . . . . . . . . . . . . . . . . Set trace debugging command [R] Advanced programming commands ----------------------------- break . . . . . . . . . . . . . . . . . . . . . . . . . Suppress Break key [R] char . . . . . . . . . . . . . . . . . . . . . . . . . . Characteristics [R] estimates . . . . . . . . . . . . . Post and redisplay estimation results [R] gph . . . . . . . . . . . . . . . . . . . . . . . . . . Low-level graphics [G] macro . . . . . . . . . . . . . . . . . Macro definition and manipulation [R] ml . . . . . . . . . . . . . . . . . . . . Maximum likelihood estimation [R] postfile . . . . . . . . . . . . . . . . . Save results in Stata dataset [R] _predict . . . . . Obtain predictions, residuals, etc., after estimation [R] sleep . . . . . . Pause for a specified time (Windows and Macintosh only) [R] unab . . . . . . . . . . . . . . . . . . . . . Unabbreviate variable list [R] window . . Programming menus, dialogs, and windows (Windows and Mac only) [R] .- Windows and Macintosh --------------------- doedit . . . . . . . . . . . . . . . . . . . . . . Edit text and do-files [R] edit . . . . . . . . . . . . . . . . Edit and list data using data editor [R] sleep . . . . . . . . . . . . . . . . . . . . . Pause for a specified time [R] touch . . . . . . . . . Change a file's type and creator (Macintosh only) [R] window . . . . . . . . . . . . . Programming menus, dialogs, and windows [R] .- Unix ---- fsl . . . . . . . . . . . . . . . . . . . . . . . . . . Format Stata log [GSU] pd . . . . . . . . . . . . . . . . . . . . . . . . . . Pipeline drivers [GSU] who . . . . . . . . . . . . . . List ids of people currently using Stata [GSU] xwindow . . . . . . . . . . . . . . . . . . . . . . X Window manipulation [G] Also see -------- Manual: ^[U] 1 Read this -- it will help^, ^[U] 2 Resources for learning and using Stata^ On-line: help for winhelp; help, search, whatsnew; stb