Joseph Nathan Cohen

Department of Sociology, CUNY Queens College, New York, NY

Saving a Stata-Format Data Set

To see more about the “Teaching through YouTube” series.  For more, see this post.

Original Video Description

How to save your data in Stata. For more Stata videos, visit www.josephncohen.org/stata-videos/

Transcription (Auto-Generated)

in this video i’ll show you how to save your data into stata format to save a data set in state of format you must load it into the memory and then use the command save the syntax to save a data set is save space open quotation marks the name of the data file cut.dta close quotation marks comma space replace for example if i want to save the date in my memory under the name gss data 2 i type save space open quotation marks gssdata2.dta close quotation marks comma space replace the replace command tells data to overwrite any data that’s already on your hard drive with the same name if you don’t use this option then stata will refuse to overwrite any data file with the same name let’s review to save the data in your memory in stata format we use the save command the syntax is save space open quotation marks the name of the data file dot dta close quotation marks comma space replace for more help type help save in this data command window