>> Home >> Bookstore >> Documentation >> Data-Management Reference Manual

Data-Management Reference Manual

Publisher:  Stata Press
Copyright:  2009
ISBN-10:  1-59718-050-5
ISBN-13:  978-1-59718-050-4
Pages:  577
Price:  $50.00

See a larger photo of the front cover

Overview of the Stata 11 documentation

Table of contents
Introduction to data-management reference manual (pdf)
Introduction to data-management commands (pdf)

Sample entries (pdf):

  • fdasave—Save and use datasets in FDA (SAS XPORT) format
  • merge—Merge datasets
  • reshape—Convert data from wide to long form and vice versa

Subject and author index (pdf)

Download the datasets used in this manual (from

Table of contents

intro (pdf) Introduction to data-management reference manual
data management (pdf) Introduction to data-management commands

append Append datasets
assert Verify truth of claim

by Repeat Stata command on subsets of the data

cd Change directory
cf Compare two datasets
changeeol Convert end-of-line characters of text file
checksum Calculate checksum of file
clear Clear memory
clonevar Clone existing variable
codebook Describe data contents
collapse Make dataset of summary statistics
compare Compare two variables
compress Compress data in memory
contract Make dataset of frequencies and percentages
copy Copy file from disk or URL
corr2data Create dataset with specified correlation structure
count Count observations satsifying specified conditions
cross Form every pairwise combination of two datasets

data types Quick reference for data types
datasignature Determine whether data have changed
dates and times Date and time (%t) values and variables
describe Describe data in memory or in file
destring Convert string variables to numeric variables and vice versa
dir Display filenames
drawnorm Draw sample from multivariate normal distribution
drop Eliminate variables or observations
duplicates Report, tag, or drop duplicate observations

edit Browse or edit data with Data Editor
egen Extensions to generate
encode Encode string into numeric and vice versa
erase Erase a disk file
expand Duplicate observations
expandcl Duplicate clustered observations

fdasave (pdf) Save and use datasets in FDA (SAS XPORT) format
filefilter Convert ASCII text or binary patterns in a file
fillin Rectangularize dataset
format Set variables' output format
functions Functions

generate Create or change contents of variable
gsort Ascending and descending sort

hexdump Display hexadecimal report on file

icd9 ICD-9-CM diagnostic and procedure codes
infile Overview of 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 attributes
ipolate Linearly interpolate (extrapolate) values
isid Check for unique identifiers

joinby Form all pairwise combinations within groups

label Manipulate labels
label language Labels for variables and values in multiple languages
labelbook Label utilities
list List values of variables
lookfor Search for string in variable names and labels

memory Memory size considerations
merge (pdf) Merge datasets
missing values Quick reference for missing values
mkdir Create directory
mvencode Change missing values to numeric values and vice versa

notes Place notes in data

obs Increase the number of observations in a dataset
odbc Load, write, or view data from ODBC sources
order Reorder variables in dataset
outfile Write ASCII-format dataset
outsheet Write spreadsheet-style dataset

pctile Create variable containing percentiles

range Generate numerical range
recast Change storage type of variable
recode Recode categorical variable
rename Rename variable
reshape (pdf) Convert data from wide to long form and vice versa
rmdir Remove directory

sample Draw random sample
save Save datasets
separate Create separate variables
shell Temporarily invoke operating system
snapshot Save and restore data snapshots
sort Sort data
split Split string variables into parts
stack Stack data
statsby Collect statistics for a command across a by list
sysuse Use shipped dataset

type Display contents of a file

use Use Stata dataset

varmanage Manage variable labels, formats, and other properties

webuse Use dataset from Stata web site

xmlsave Save and use observations in XML format
xpose Interchange observations and variables

zipfile Compress and uncompress files and directories in zip archive format

Subject and author index (pdf)
The Stata Blog: Not Elsewhere Classified Find us on Facebook Follow us on Twitter LinkedIn Google+ Watch us on YouTube