Open .dta files online
Open the bundled Stata-format dataset immediately. The file is processed locally in your browser and the demo requires no account.
Use a DTA file viewer in your browser
To view a Stata-format dataset, load it and inspect its structure before running calculations:
use "data/student_scores.dta", clear
describe
summarize math read write
The bundled button above opens this tested file and do-file together without an account. For a personal dataset, add the file to your own stats.camp project and replace the path; the public sample does not receive or contain your file.
What is a .dta file?
A .dta file is a dataset format used by Stata. Unlike a plain CSV, it can store rows and columns together with variable names, storage types, variable labels, value-label definitions, display formats, and dataset metadata.
stats.camp reads the dataset locally when commands run in the browser. Opening this bundled example does not upload a personal file or require an account.
Try the bundled .dta file
The demo repository includes a 24-row synthetic teaching dataset. The primary button opens the matching do-file and runs this complete workflow:
clear
use "data/student_scores.dta", clear
describe
summarize math read write
list id female race read write math in 1/6
use loads the bundled file, describe shows its structure, and the final commands inspect its values.
Output from the bundled dataset
Contains data from student_scores.dta
Observations: 24
Variables: 6
-------------------------------------------------------------------------------
Variable Storage Display Value
name type format label Variable label
-------------------------------------------------------------------------------
id double %8.0g
female double %8.0g
race double %8.0g
read double %8.0g
write double %8.0g
math double %8.0g
-------------------------------------------------------------------------------
Variable | Obs Mean Std. dev. Min Max
-------------+---------------------------------------------------------
math | 24 57.375 7.654567 43 72
read | 24 56.16667 6.349712 44 68
write | 23 57.65217 6.69877 46 70
The file contains six variables and 24 observations. The writing variable has 23 observations because one synthetic value is missing.
Open another .dta file
After trying the bundled example, add your own file to a stats.camp project and replace the path in use. Check the number of rows and variables, variable types, labels, missing values, and a few summaries before relying on the data.
.dta is a versioned format, and uncommon metadata or storage types can differ between files. See the maintained command table for current coverage. For CSV data, use the runnable import delimited example.
Related guides
Open the bundled .dta example
Open the tested project and its sample .dta file in stats.camp. No upload, installation, or account is required.
Open a sample .dta file