StataStata User's Guide

Stata Base Reference Manual (4 volumes)

Title: Stata Base Reference Manual (4 volumes)
Publisher: Stata Press
Copyright: 2003
ISBN: 1-881228-69-X Volumes 1–4, 1,837 pages
ISBN: 1-881228-70-3 Volume 1 only, 464 pages
ISBN: 1-881228-71-1 Volume 2 only, 531 pages
ISBN: 1-881228-72-X Volume 3 only, 451 pages
ISBN: 1-881228-76-2 Volume 4 only, 391 pages
See a larger photo of the front cover of the manuals

Show me the Table of Contents for

0 Reference Volume 1 (A–F)
0 Reference Volume 2 (G–M)
0 Reference Volume 3 (N–R)
0 Reference Volume 4 (S–Z)

Table of Contents

0 Contents of Reference Volume 1 (A–F)

intro Introduction to base reference manual


about Display information about my version of Stata
adjust Tables of adjusted means and proportions
alpha Cronbach's alpha
anova Analysis of variance and covariance
append Append datasets
areg Linear regression with a large dummy-variable set
assert Verify truth of claim


binreg Generalized linear models: extensions to the binomial family
biprobit Bivariate probit models
bitest Binomial probability test
bootstrap Bootstrap sampling and estimation
boxcox Box–Cox regression models
brier Brier score decomposition
by Repeat Stata command on subsets of the data


canon Canonical correlations
cd Change directory
centile Report centile and confidence interval
cf Compare two datasets
checksum Calculate checksum of file
ci Confidence intervals for means, proportions, and counts
clogit Conditional (fixed-effects) logistic regression
cloglog Maximum-likelihood complementary log-log estimation
cnsreg Constrained linear regression
codebook Produce a codebook describing the contents of data
collapse Make dataset of means, medians, etc.
compare Compare two variables
compress Compress data in memory
constraint Define and list constraints
contract Make dataset of frequencies
copy Copy file from disk or URL
copyright Display copyright information
corr2data Create a dataset with a specified correlation structure
correlate Correlations (covariances) of variables or estimators
count Count observations satisfying specified condition
cross Form every pairwise combination of two datasets
cumul Cumulative distribution
cusum Cusum plots and tests for binary variables


data types Quick reference for data types
db Launch dialog
describe Describe contents of data in memory or on disk
destring Change string variables to numeric
diagnostic plots Distributional diagnostic plots
dir Display filenames
display Substitute for a hand calculator
do Execute commands from a file
doedit Edit do-files and other text files
dotplot Comparative scatterplots
drawnorm Draw a sample from a normal distribution
drop Eliminate variables or observations
dstdize Direct and indirect standardization
duplicates Inform on, tag, or drop duplicate observations


edit Edit and list data using Data Editor
egen Extensions to generate
eivreg Errors-in-variables regression
encode Encode string into numeric and vice versa
erase Erase a disk file
error messages Error messages and return codes
estimates Estimation results
estimation commands Quick reference for estimation commands
exit Exit Stata
expand Duplicate observations


factor Factor analysis
fillin Rectangularize dataset
for Repeat Stata command
format Specify variable display format
fracpoly Fractional polynomial regression
frontier Stochastic frontier models
functions Functions


0 Contents of Reference Volume 2 (G–M)

generate Create or change contents of variable
glm Generalized linear models
glogit Logit and probit on grouped data
grmeanby Graph means and medians by categorical variables
grsort Ascending and descending sort


hausman Hausman specification test
heckman Heckman selection model
heckprob Maximum-likelihood probit estimation with selection
help Obtain online help
hetprob Maximum-likelihood heteroskedastic probit estimation
histogram Histograms for continuous and categorical variables
hotelling Hotelling's T-squared generalized means test


icd9 ICD-9-CM diagnostic and procedure codes
impute Predict missing values
infile Quick reference for reading data into Stata
infile (fixed format) Read ASCII (text) data in fixed format with a dictionary
infile (free format) Read unformatted ASCII (text) data
infix (fixed format) Read ASCII (text) data in fixed format
input Enter data from keyboard
insheet Read ASCII (text) data created by a spreadsheet
inspect Display simple summary of data's characteristics
ipolate Linearly interpolate (extrapolate) values
isid Check for unique identifiers
ivreg Instrumental variables and two-stage least squares regression


jknife Jackknife estimation
joinby Form all pairwise combinations within groups


kappa Interrater agreement
kdensity Univariate kernel density estimation
ksmirnov Kolmogorov–Smirnov equality-of-distributions test
kwallis Kruskal–Wallis equality-of-populations rank test


label Label manipulation
labelbook Label utilities
ladder Ladder of powers
level Set default confidence level
limits Quick reference for limits
lincom Linear combinations of estimators
linktest Specification link test for single-equation models
list List values of variables
lnskew0 Find zero-skewness log or Box–Cox transform
log Echo copy of session to file or device
logistic Logistic regression
logit Maximum-likelihood logit estimation
loneway Large one-way ANOVA, random effects, and reliability
lorenz Inequality measures
lowess Lowess smoothing
lrtest Likelihood-ratio test after estimation
lv Letter-value displays


manova Multivariate analysis of variance and covariance
matsize Set the maximum number of variables in a model
maximize Details of iterative maximization
means Arithmetic, geometric, and harmonic means
memory Memory size considerations
merge Merge datasets
meta Meta analysis
mfp Multivariable fractional polynomial models
mfx Obtain marginal effects or elasticities after estimation
missing values Quick reference for missing values
mkdir Create directory
mkspline Linear spline construction
ml Maximum likelihood estimation
mlogit Maximum-likelihood multinomial (polytomous) logistic regression
more The —more— message
mvencode Change missing to coded missing value and vice versa
mvreg Multivariate regression


0 Contents of Reference Volume 3 (N–R)

nbreg Negative binomial regression
net Install and manage user-written additions from the net
net search Search Internet for installable packages
newey Regression with Newey–West standard errors
news Report Stata news
nl Nonlinear least squares
nlogit Maximum-likelihood nested logit estimation
notes Place notes in data
nptrend Test for trend across ordered groups


obs Increase number of observations in dataset
odbc Load data from ODBC sources
ologit Maximum-likelihood ordered logit estimation
oneway One-way analysis of variance
oprobit Maximum-likelihood ordered probit estimation
order Reorder variables in dataset
orthog Orthogonal variables and orthogonal polynomials
outfile Write ASCII-format dataset
outsheet Write spreadsheet-style dataset


pca Principal component analysis
pcorr Partial correlation coefficients
pctile Create variable containing percentiles
permute Monte Carlo permutation tests
pk Pharmacokinetic (biopharmaceutical) data
pkcollapse Generate pharmacokinetic measurement dataset
pkcross Analyze crossover experiments
pkequiv Perform bioequivalence tests
pkexamine Calculate pharmacokinetic measures
pkshape Reshape (pharmacokinetic) Latin square data
pksumm Summarize pharmacokinetic data
poisson Poisson regression
predict Obtain predictions, residuals, etc. after estimation
predictnl Obtain nonlinear predictions, standar errors, etc. after estimation
probit Maximum-likelihood probit estimation
prtest One- and two-sample tests of proportions


qc Quality control charts
qreg Quantile (including median) regression
query Display system parameters


range Numerical ranges, derivatives, and integrals
recast Change storage type of variable
recode Recode categorical variable
reg3 Three-stage estimation for systems of simultaneous equations
regress Linear regression
regression diagnostics Regression diagnostics
rename Rename variable
reshape Convert data from wide to long and vice versa
#review Review previous commands
roc Receiver-Operating-Characteristic (ROC) analysis
rologit Rank-ordered logistic regression
rreg Robust regression
runtest Test for random order


0 Contents of Reference Volume 4 (S–Z)

sample Draw random sample
sampsi Sample size and power determination
save Save and use datasets
saved results Saved results
scobit Maximum-likelihood skewed logit estimation
sdtest Variance comparison tests
search Search Stata documentation
separate Create separate variables
serrbar Graph standard error bar chart
set Quick reference for system parameters
shell Temporarily invoke operating system
signrank Sign, rank, and median tests
simulate Monte Carlo simulations
sj Stata Journal and STB installation instructions
sktest Skewness and kurtosis test for normality
smooth Robust nonlinear smoother
sort Sort data
spearman Spearman's and Kendall's correlations
spikeplt Spike plots and rootograms
split Split string variables into parts
ssc Install and uninstall packages from SSC
stack Stack data
statsby Collect statistics for a command across a by list
stem Stem-and-leaf displays
suest Seemingly unrelated estimation
summarize Summary statistics
sureg Zellner's seemingly unrelated regression
sw Stepwise maximum-likelihood estimation
swilk Shapiro–Wilk and Shapiro–Francia tests for normality
symmetry Symmetry and marginal homogeneity tests
sysuse Use shipped dataset


table Tables of summary statistics
tabstat Display table of summary statistics
tabsum One- and two-way tables of summary statistics
tabulate One- and two-way tables of frequencies
test Test linear hypotheses after model estimation
testnl Test nonlinear hypotheses after model estimation
tobit Tobit, censored-normal, and interval regression
translate Print and translate logs
treatreg Treatment effects model
truncreg Truncated regression
ttest Mean comparison tests
type Display contents of files


update Update Stata


vce Display covariance matrix of the estimators
view View files and logs
vwls Variance-weighted least squares


webuse Use dataset from web
which Display location and version for an ado-file


xi Interaction expansion
xpose Interchange observations and variables


zip Zero-inflated Poisson and negative binomial models


© Copyright 2004 Stata Corporation.