Introduction
A .dta file holds a dataset of the Stata statistics software. Format 118
is used by Stata 14 to 19, with releases 119 to 121 for very large numbers of variables
and for alias variables. Releases 113 to 117 are older, and Stata reads every format it
has released.
Structure
In the current releases the file begins with <stata_dta> and ends
with </stata_dta>. Between them come marked sections: a header, a map
of file offsets, variable types and names, sort order, display formats, value-label
names, variable labels, characteristics, the data, long strings and value labels. The
header records the release, the byte order, the numbers of variables and observations,
a label and a time stamp. Numbers may be stored with either byte order.
Not described
This page is a first outline.
Known, not yet covered
- Reference: the layout of each section, the data types and missing values, and the older releases.
- Viewer: the site has no viewer for this format.
Links
Software
- Stata – statistics software
Reference
- Stata help: dta – Stata’s description of the dataset formats