Save stata file in older version
We will compute a variable called price3 which will be three times the value of price. Did you see how Stata said file auto2. Stata is worried that you will accidentally overwrite your data file.
You need to use the replace option to tell Stata that you know that the file exists and you want to replace it. We can try to use the auto file. See how Stata refused to use the file, saying no; data in memory would be lost? Stata did not want you to lose the changes that you made to the data sitting in memory. If you really want to discard the changes in memory, then you need to use the clear option on the use command, as shown below. Stata tries to protect you from losing your data by doing the following: 1.
If you want to save a file over an existing file, you need to use the replace option, e. If you try to use a file and the file in memory has unsaved changes, you need to use the clear option to tell Stata that you want to discard the changes, e. Version command can be used in 3 ways. Cornell University. Why can't I load my Stata dataset with an older version of Stata? Where is the version of Stata that your data was created in.
Example: My data is of version 13, but I want to load this data into version Example: My data is of version 15, but I want to save the data so I can use it in Stata This format change can cause problems when two colleagues are working on a project and one of them has not upgraded to the latest release.
For example, when a Stata 13 user tries to open a Stata 16 dataset from a colleague, they are presented with an error,. There is, however, an easy solution to this problem. First, when we have to change Stata's dataset format, we always update the previous version of Stata to be able to read the format of the next version. Often this will be all you need. Simply make sure your Stata is up-to-date type update , and you will be able to read a dataset from the next version of Stata even if the format is different.
If you receive data from a colleague with a newer version of Stata, ask them to use Stata's saveold command. See the links below. To avoid errors, please make sure that you have installed the most recent update for your version of Stata. Saving datasets in Stata 14, Stata 15, or Stata 16 so that they can be read by Stata 11, Stata 12, or Stata 13 Stata 16, Stata 15, and Stata 14 share the same format, so you do not have to use saveold to save a Stata 14 dataset; simply use save.
The version option was added in Stata 14, and it specifies which previous. The default is version 13 , meaning Stata 13 format. To save a dataset in Stata 14, Stata 15, or Stata 16 so that it can be used in Stata 13, use the saveold command.
To save a dataset in Stata 14, Stata 15, or Stata 16 so that it can be used in Stata 12, use the saveold command with the version option.
0コメント