Datasets for Stata Data Management Reference Manual, Release 17
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/r17/odd1.dta |
| https://www.stata-press.com/data/r17/even.dta |
| https://www.stata-press.com/data/r17/odd.dta |
| https://www.stata-press.com/data/r17/oddeven.dta |
| https://www.stata-press.com/data/r17/capop.dta |
| https://www.stata-press.com/data/r17/ilpop.dta |
| https://www.stata-press.com/data/r17/txpop.dta |
assert
assertnested
- schools.dta
- carchoice.dta
| https://www.stata-press.com/data/r17/schools.dta |
| https://www.stata-press.com/data/r17/carchoice.dta |
bcal
by
checksum
clear
clonevar
codebook
- educ3.dta
- citytemp.dta
- auto.dta
- funnyvar.dta
| https://www.stata-press.com/data/r17/educ3.dta |
| https://www.stata-press.com/data/r17/citytemp.dta |
| https://www.stata-press.com/data/r17/auto.dta |
| https://www.stata-press.com/data/r17/funnyvar.dta |
collapse
- college.dta
- census5.dta
| https://www.stata-press.com/data/r17/college.dta |
| https://www.stata-press.com/data/r17/census5.dta |
compare
compress
contract
copy
- fullauto.dta
- simple.dta
| https://www.stata-press.com/data/r17/fullauto.dta |
| https://www.stata.com/examples/simple.dta |
corr2data
count
- countxmpl.dta
| https://www.stata-press.com/data/r17/countxmpl.dta |
Datetime
Datetime durations
- ages.dta
- month_differences.dta
- leap_day.dta
- time_differences.dta
| https://www.stata-press.com/data/r17/ages.dta |
| https://www.stata-press.com/data/r17/month_differences.dta |
| https://www.stata-press.com/data/r17/leap_day.dta |
| https://www.stata-press.com/data/r17/time_differences.dta |
Datetime relative dates
- birthdays.dta
| https://www.stata-press.com/data/r17/birthdays.dta |
describe
- states.dta
- census.dta
- auto.dta
| https://www.stata-press.com/data/r17/states.dta |
| https://www.stata-press.com/data/r17/census.dta |
| https://www.stata-press.com/data/r17/auto.dta |
destring
- destring1.dta
- destring2.dta
- tostring.dta
| https://www.stata-press.com/data/r17/destring1.dta |
| https://www.stata-press.com/data/r17/destring2.dta |
| https://www.stata-press.com/data/r17/tostring.dta |
drop
ds
duplicates
egen
- egenxmpl.dta
- egenxmpl2.dta
- egenxmpl3.dta
- auto.dta
- states1.dta
- egenxmpl4.dta
- auto3.dta
- egenxmpl5.dta
- egenxmpl6.dta
| https://www.stata-press.com/data/r17/egenxmpl.dta |
| https://www.stata-press.com/data/r17/egenxmpl2.dta |
| https://www.stata-press.com/data/r17/egenxmpl3.dta |
| https://www.stata-press.com/data/r17/auto.dta |
| https://www.stata-press.com/data/r17/states1.dta |
| https://www.stata-press.com/data/r17/egenxmpl4.dta |
| https://www.stata-press.com/data/r17/auto3.dta |
| https://www.stata-press.com/data/r17/egenxmpl5.dta |
| https://www.stata-press.com/data/r17/egenxmpl6.dta |
encode
- hbp2.dta
- hbp3.dta
| https://www.stata-press.com/data/r17/hbp2.dta |
| https://www.stata-press.com/data/r17/hbp3.dta |
expand
- expandxmpl.dta
| https://www.stata-press.com/data/r17/expandxmpl.dta |
expandcl
- expclxmpl.dta
| https://www.stata-press.com/data/r17/expclxmpl.dta |
fillin
format
- census10.dta
- fmtxmpl.dta
- fmtxmpl2.dta
| https://www.stata-press.com/data/r17/census10.dta |
| https://www.stata-press.com/data/r17/fmtxmpl.dta |
| https://www.stata-press.com/data/r17/fmtxmpl2.dta |
frames intro
- auto.dta
- census.dta
| https://www.stata-press.com/data/r17/auto.dta |
| https://www.stata-press.com/data/r17/census.dta |
frame change
frame create
frame put
frame pwf
frlink
- persons.dta
- txcounty.dta
- family.dta
- discharge1.dta
- discharge2.dta
| https://www.stata-press.com/data/r17/persons.dta |
| https://www.stata-press.com/data/r17/txcounty.dta |
| https://www.stata-press.com/data/r17/family.dta |
| https://www.stata-press.com/data/r17/discharge1.dta |
| https://www.stata-press.com/data/r17/discharge2.dta |
generate
- genxmpl1.dta
- genxmpl2.dta
- genxmpl3.dta
- genxmpl4.dta
| https://www.stata-press.com/data/r17/genxmpl1.dta |
| https://www.stata-press.com/data/r17/genxmpl2.dta |
| https://www.stata-press.com/data/r17/genxmpl3.dta |
| https://www.stata-press.com/data/r17/genxmpl4.dta |
gsort
- auto.dta
- bp3.dta
| https://www.stata-press.com/data/r17/auto.dta |
| https://www.stata-press.com/data/r17/bp3.dta |
icd
icd9
icd9p
icd10
- australia10.dta
| https://www.stata-press.com/data/r17/australia10.dta |
icd10cm
icd10pcs
import dbase
import excel
import sasxport5
import sasxport8
insobs
inspect
- auto.dta
- bobsdata.dta
- census.dta
- citytemp.dta
| https://www.stata-press.com/data/r17/auto.dta |
| https://www.stata-press.com/data/r17/bobsdata.dta |
| https://www.stata-press.com/data/r17/census.dta |
| https://www.stata-press.com/data/r17/citytemp.dta |
ipolate
- ipolxmpl1.dta
- ipolxmpl2.dta
| https://www.stata-press.com/data/r17/ipolxmpl1.dta |
| https://www.stata-press.com/data/r17/ipolxmpl2.dta |
isid
- auto.dta
- grunfeld.dta
| https://www.stata-press.com/data/r17/auto.dta |
| https://www.stata-press.com/data/r17/grunfeld.dta |
joinby
- child.dta
- parent.dta
| https://www.stata-press.com/data/r17/child.dta |
| https://www.stata-press.com/data/r17/parent.dta |
label
labelbook
- labelbook1.dta
- labelbook2.dta
- data_in_trouble.dta
- auto.dta
| https://www.stata-press.com/data/r17/labelbook1.dta |
| https://www.stata-press.com/data/r17/labelbook2.dta |
| https://www.stata-press.com/data/r17/data_in_trouble.dta |
| https://www.stata-press.com/data/r17/auto.dta |
list
lookfor
memory
merge
- autosize.dta
- autoexpense.dta
- sforce.dta
- dollars.dta
- overlap1.dta
- overlap2.dta
| https://www.stata-press.com/data/r17/autosize.dta |
| https://www.stata-press.com/data/r17/autoexpense.dta |
| https://www.stata-press.com/data/r17/sforce.dta |
| https://www.stata-press.com/data/r17/dollars.dta |
| https://www.stata-press.com/data/r17/overlap1.dta |
| https://www.stata-press.com/data/r17/overlap2.dta |
mvencode
notes
order
outfile
- outfilexmpl.dta
| https://www.stata-press.com/data/r17/outfilexmpl.dta |
pctile
- auto.dta
- bp1.dta
- bp2.dta
| https://www.stata-press.com/data/r17/auto.dta |
| https://www.stata-press.com/data/r17/bp1.dta |
| https://www.stata-press.com/data/r17/bp2.dta |
putmata
recast
recode
- recodexmpl.dta
| https://www.stata-press.com/data/r17/recodexmpl.dta |
rename
- renamexmpl.dta
| https://www.stata-press.com/data/r17/renamexmpl.dta |
reshape
- reshape1.dta
- reshape2.dta
- reshapexp1.dta
- reshape6.dta
- reshape3.dta
- reshape4.dta
- reshapexp2.dta
| https://www.stata-press.com/data/r17/reshape1.dta |
| https://www.stata-press.com/data/r17/reshape2.dta |
| https://www.stata-press.com/data/r17/reshapexp1.dta |
| https://www.stata-press.com/data/r17/reshape6.dta |
| https://www.stata-press.com/data/r17/reshape3.dta |
| https://www.stata-press.com/data/r17/reshape4.dta |
| https://www.stata-press.com/data/r17/reshapexp2.dta |
sample
separate
snapshot
sort
stack
- stackxmpl.dta
- citytemp.dta
| https://www.stata-press.com/data/r17/stackxmpl.dta |
| https://www.stata-press.com/data/r17/citytemp.dta |
statsby
- auto2.dta
- statsby.dta
| https://www.stata-press.com/data/r17/auto2.dta |
| https://www.stata-press.com/data/r17/statsby.dta |
sysuse
use
- nlswork.dta
- union.dta
| https://www.stata-press.com/data/r17/nlswork.dta |
| https://www.stata-press.com/data/r17/union.dta |
vl
- auto.dta
- questionnaire.dta
| https://www.stata-press.com/data/r17/auto.dta |
| https://www.stata-press.com/data/r17/questionnaire.dta |
vl list
webuse
xpose
- xposexmpl.dta
| https://www.stata-press.com/data/r17/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.