Anonymous Asked in Cars &Transportation · 2 weeks ago

What is the Save command in Stata?

saveold saves the dataset currently in memory on disk under the name filename in previous . dta formats, namely, those for Stata 13, 12, or 11. If you are using Stata 17 and want to save a file so that it may be read by someone using an older version of Stata, use the saveold command. 21 июл. 2000 г.


How do you save in Stata?

select File > Save; 2. click on the Save button; or 3. type save, replace in the Command window. Once you overwrite a dataset, there is no way to recover your original dataset.

How do you save Stata commands in do file?

Navigate to the folder where you want to save your do file and enter the file name. Then click Save. (The name of the do file above is “Analysis1.do”.) You can reload it at another time if you want to alter or extend the analysis begun here.

What is preserve command in Stata?

When preserve is issued, the user's data are preserved. The data in memory remain unchanged. When the program or do-file concludes, the user's data are automatically restored. After a preserve, the programmer can also instruct Stata to restore the data now with the restore command.

Where do Stata files save to?

dta is used. If your filename contains embedded spaces, remember to enclose it in double quotes. saveold saves the dataset currently in memory on disk under the name filename in Stata 12 format. Stata 11 can also read Stata 12 datasets.

Related Questions

Relevance
Write us your question, the answer will be received in 24 hours