laserdanax.blogg.se

Stata 12 upgrade
Stata 12 upgrade









Let’s make another change to the data in memory by creating a variable called Replace option to tell Stata that you know that the file exists and you want to replace it. Let’s try to save this data again to auto2 save auto2 file auto2.dta already existsĭid you see how Stata said file auto2.dta already exists? Stata is worried that you will accidentally overwrite your data file. Price3 which will be three times the value of price. Let’s make another change to the dataset. Let’s save this data and call itĪuto2 (Stata will save it as auto2.dta). The save command is used to save the data in memory permanently on disk. Note: dataset has changed since last saved Saving the changes, the changes we made would be lost. It is like when you are editing aĭocument if you don’t save the data, any changes you make will be lost. Stata knows that the data in memory has changed, and would need to be saved to avoid losing the changes. We also see a note from Stata sayingĭataset has changed since last saved. If we use the describe command again, we see the variable we just created is part of the data in memory. Price2 which will be double the value of price. Let’s make a change to the data in memory. For example, the summarize command gives summary statistics for the data Now that the data is in memory, we can analyze it. The describe command tells you information about the data that is currently sitting in memory. dta you need only say use auto and Stata knows to read in the file called The use command below gets the Stata data file called auto.dta from disk and places it in memory so we can analyze and/or modify it. It is kind of like when you open a Word document you need to read a Word document into Word before you can work with it. A data file must be read into memory before you can analyze it. The use command gets a Stata data file from disk and places it in memory so you can analyze and/or modify it.











Stata 12 upgrade