Datasets for Stata Data Management Reference Manual, Release 18
Datasets used in the Stata documentation were selected to demonstrate how to use Stata. Some datasets have been altered to explain a particular feature. Do not use these datasets for analysis.
To download a dataset:
- Click on a filename to download it to a local folder on your machine.
- Alternatively, you can first establish an Internet connection, and then, in Stata's Command window, type
- . webuse filename, clear
to use the file. You could then save the file with Stata's save command.
Entries starting with the letter ...
A B C D E F G H I J K L M N O P Q R S T U V W X Y Zappend
- odd1.dta
- even.dta
- odd.dta
- oddeven.dta
- capop.dta
- ilpop.dta
- txpop.dta
| https://www.stata-press.com/data/r18/odd1.dta |
| https://www.stata-press.com/data/r18/even.dta |
| https://www.stata-press.com/data/r18/odd.dta |
| https://www.stata-press.com/data/r18/oddeven.dta |
| https://www.stata-press.com/data/r18/capop.dta |
| https://www.stata-press.com/data/r18/ilpop.dta |
| https://www.stata-press.com/data/r18/txpop.dta |
assert
assertnested
- schools.dta
- carchoice.dta
| https://www.stata-press.com/data/r18/schools.dta |
| https://www.stata-press.com/data/r18/carchoice.dta |
bcal
by
checksum
clear
clonevar
codebook
- educ3.dta
- citytemp.dta
- auto.dta
- funnyvar.dta
| https://www.stata-press.com/data/r18/educ3.dta |
| https://www.stata-press.com/data/r18/citytemp.dta |
| https://www.stata-press.com/data/r18/auto.dta |
| https://www.stata-press.com/data/r18/funnyvar.dta |
collapse
- college.dta
- census5.dta
| https://www.stata-press.com/data/r18/college.dta |
| https://www.stata-press.com/data/r18/census5.dta |
compare
compress
contract
copy
- fullauto.dta
- simple.dta
| https://www.stata-press.com/data/r18/fullauto.dta |
| https://www.stata.com/examples/simple.dta |
corr2data
count
- countxmpl.dta
| https://www.stata-press.com/data/r18/countxmpl.dta |
Datetime
Datetime durations
- ages.dta
- month_differences.dta
- leap_day.dta
- time_differences.dta
| https://www.stata-press.com/data/r18/ages.dta |
| https://www.stata-press.com/data/r18/month_differences.dta |
| https://www.stata-press.com/data/r18/leap_day.dta |
| https://www.stata-press.com/data/r18/time_differences.dta |
Datetime relative dates
- birthdays.dta
| https://www.stata-press.com/data/r18/birthdays.dta |
describe
- states.dta
- census.dta
- auto.dta
| https://www.stata-press.com/data/r18/states.dta |
| https://www.stata-press.com/data/r18/census.dta |
| https://www.stata-press.com/data/r18/auto.dta |
destring
- destring1.dta
- destring2.dta
- tostring.dta
| https://www.stata-press.com/data/r18/destring1.dta |
| https://www.stata-press.com/data/r18/destring2.dta |
| https://www.stata-press.com/data/r18/tostring.dta |
drop
ds
duplicates
egen
- egenxmpl.dta
- egenxmpl2.dta
- egenxmpl1.dta
- egenxmpl3.dta
- auto.dta
- states1.dta
- egenxmpl4.dta
- auto3.dta
- egenxmpl5.dta
- egenxmpl6.dta
| https://www.stata-press.com/data/r18/egenxmpl.dta |
| https://www.stata-press.com/data/r18/egenxmpl2.dta |
| https://www.stata-press.com/data/r18/egenxmpl1.dta |
| https://www.stata-press.com/data/r18/egenxmpl3.dta |
| https://www.stata-press.com/data/r18/auto.dta |
| https://www.stata-press.com/data/r18/states1.dta |
| https://www.stata-press.com/data/r18/egenxmpl4.dta |
| https://www.stata-press.com/data/r18/auto3.dta |
| https://www.stata-press.com/data/r18/egenxmpl5.dta |
| https://www.stata-press.com/data/r18/egenxmpl6.dta |
encode
- hbp2.dta
- hbp3.dta
| https://www.stata-press.com/data/r18/hbp2.dta |
| https://www.stata-press.com/data/r18/hbp3.dta |
expand
- expandxmpl.dta
| https://www.stata-press.com/data/r18/expandxmpl.dta |
expandcl
- expclxmpl.dta
| https://www.stata-press.com/data/r18/expclxmpl.dta |
fillin
format
- census10.dta
- fmtxmpl.dta
- fmtxmpl2.dta
| https://www.stata-press.com/data/r18/census10.dta |
| https://www.stata-press.com/data/r18/fmtxmpl.dta |
| https://www.stata-press.com/data/r18/fmtxmpl2.dta |
fralias
- persons.dta
- txcounty.dta
| https://www.stata-press.com/data/r18/persons.dta |
| https://www.stata-press.com/data/r18/txcounty.dta |
frames intro
- auto.dta
- census.dta
| https://www.stata-press.com/data/r18/auto.dta |
| https://www.stata-press.com/data/r18/census.dta |
frame change
frame create
frame put
frame pwf
frames describe
- census.dta
- hsng.dta
| https://www.stata-press.com/data/r18/census.dta |
| https://www.stata-press.com/data/r18/hsng.dta |
frames save
- census.dta
- hsng.dta
| https://www.stata-press.com/data/r18/census.dta |
| https://www.stata-press.com/data/r18/hsng.dta |
frames use
- census.dta
- hsng.dta
| https://www.stata-press.com/data/r18/census.dta |
| https://www.stata-press.com/data/r18/hsng.dta |
frlink
- persons.dta
- txcounty.dta
- family.dta
- discharge1.dta
- discharge2.dta
| https://www.stata-press.com/data/r18/persons.dta |
| https://www.stata-press.com/data/r18/txcounty.dta |
| https://www.stata-press.com/data/r18/family.dta |
| https://www.stata-press.com/data/r18/discharge1.dta |
| https://www.stata-press.com/data/r18/discharge2.dta |
generate
- genxmpl1.dta
- genxmpl2.dta
- genxmpl3.dta
- genxmpl4.dta
| https://www.stata-press.com/data/r18/genxmpl1.dta |
| https://www.stata-press.com/data/r18/genxmpl2.dta |
| https://www.stata-press.com/data/r18/genxmpl3.dta |
| https://www.stata-press.com/data/r18/genxmpl4.dta |
gsort
- auto.dta
- bp3.dta
| https://www.stata-press.com/data/r18/auto.dta |
| https://www.stata-press.com/data/r18/bp3.dta |
icd
icd9
icd9p
icd10
- australia10.dta
| https://www.stata-press.com/data/r18/australia10.dta |
icd10cm
icd10pcs
import dbase
import excel
import sasxport5
import sasxport8
import spss
- food_consumption.dta
| https://www.stata-press.com/data/r18/food_consumption.dta |
insobs
inspect
- auto.dta
- bobsdata.dta
- census.dta
- citytemp.dta
| https://www.stata-press.com/data/r18/auto.dta |
| https://www.stata-press.com/data/r18/bobsdata.dta |
| https://www.stata-press.com/data/r18/census.dta |
| https://www.stata-press.com/data/r18/citytemp.dta |
ipolate
- ipolxmpl1.dta
- ipolxmpl2.dta
| https://www.stata-press.com/data/r18/ipolxmpl1.dta |
| https://www.stata-press.com/data/r18/ipolxmpl2.dta |
isid
- auto.dta
- grunfeld.dta
| https://www.stata-press.com/data/r18/auto.dta |
| https://www.stata-press.com/data/r18/grunfeld.dta |
joinby
- child.dta
- parent.dta
| https://www.stata-press.com/data/r18/child.dta |
| https://www.stata-press.com/data/r18/parent.dta |
label
labelbook
- labelbook1.dta
- labelbook2.dta
- data_in_trouble.dta
- auto.dta
| https://www.stata-press.com/data/r18/labelbook1.dta |
| https://www.stata-press.com/data/r18/labelbook2.dta |
| https://www.stata-press.com/data/r18/data_in_trouble.dta |
| https://www.stata-press.com/data/r18/auto.dta |
list
lookfor
memory
merge
- autosize.dta
- autoexpense.dta
- sforce.dta
- dollars.dta
- overlap1.dta
- overlap2.dta
| https://www.stata-press.com/data/r18/autosize.dta |
| https://www.stata-press.com/data/r18/autoexpense.dta |
| https://www.stata-press.com/data/r18/sforce.dta |
| https://www.stata-press.com/data/r18/dollars.dta |
| https://www.stata-press.com/data/r18/overlap1.dta |
| https://www.stata-press.com/data/r18/overlap2.dta |
mvencode
notes
order
outfile
- outfilexmpl.dta
| https://www.stata-press.com/data/r18/outfilexmpl.dta |
pctile
- auto.dta
- bp1.dta
- bp2.dta
| https://www.stata-press.com/data/r18/auto.dta |
| https://www.stata-press.com/data/r18/bp1.dta |
| https://www.stata-press.com/data/r18/bp2.dta |
putmata
recast
recode
- recodexmpl.dta
| https://www.stata-press.com/data/r18/recodexmpl.dta |
rename
- renamexmpl.dta
| https://www.stata-press.com/data/r18/renamexmpl.dta |
reshape
- reshape1.dta
- reshape2.dta
- reshapexp1.dta
- reshape6.dta
- reshape3.dta
- reshape4.dta
- reshapexp2.dta
| https://www.stata-press.com/data/r18/reshape1.dta |
| https://www.stata-press.com/data/r18/reshape2.dta |
| https://www.stata-press.com/data/r18/reshapexp1.dta |
| https://www.stata-press.com/data/r18/reshape6.dta |
| https://www.stata-press.com/data/r18/reshape3.dta |
| https://www.stata-press.com/data/r18/reshape4.dta |
| https://www.stata-press.com/data/r18/reshapexp2.dta |
sample
separate
snapshot
sort
stack
- stackxmpl.dta
- citytemp.dta
| https://www.stata-press.com/data/r18/stackxmpl.dta |
| https://www.stata-press.com/data/r18/citytemp.dta |
statsby
- auto2.dta
- statsby.dta
| https://www.stata-press.com/data/r18/auto2.dta |
| https://www.stata-press.com/data/r18/statsby.dta |
sysuse
use
- nlswork.dta
- union.dta
| https://www.stata-press.com/data/r18/nlswork.dta |
| https://www.stata-press.com/data/r18/union.dta |
vl
- auto.dta
- questionnaire.dta
| https://www.stata-press.com/data/r18/auto.dta |
| https://www.stata-press.com/data/r18/questionnaire.dta |
vl list
webuse
xpose
- xposexmpl.dta
| https://www.stata-press.com/data/r18/xposexmpl.dta |
StataCorp gratefully acknowledges that some proprietary datasets in the reference manuals have been used in our printed documentation with the express permission of the copyright holders. If any copyright holder believes that by making these datasets available to the public, StataCorp is in violation of the letter or spirit of any such agreement, please contact [email protected] and any such materials will be removed from this web page.