I have ingrained in my muscle memory to press "ctrl+s" every time before I run a .do file in case Stata crashes. Once in a while I write code directly into the Stata command field, especially when I tabulate or summarise variables I just created to quality check them. I have thus accidently managed to press "ctrl+s" while in this window accidentaly, and followingly press enter with the intent to execute the command I wrote into the command window. This of course, replaces the data set I am working on, which I extremely seldomly want to do, and especially not outside of a .do file.
Is there a way to never allow Stata to overwrite a specific file? In the .do file I use the "replace" option to force Stata to overwrite, but I could not find any options to "lock" the data set. I couldn't find an option anywhere to dissalow the "ctrl+s" on saving data sets. I wanted to ask if there is some information I am missing?
Related Posts with Never allow Stata to replace dataset
Race and age composition for 50 states in multiple yearsI'm working with ACS data where I'm gonna need state controls like - income per capita , unemploymen…
Oaxaca decomposition detail unexplained partI am doing Oaxaca decomposition in detail. The interpretation of the explained part of different var…
OLS R^2 for large datasets inaccurate (lassogof)Dear community, I am using 'lassogof' to compare the performance of different Lasso, Elastic Net an…
Quickly edit duplicated observation in a panel settingHello everyone! I have been working on removing duplicated observations for a long time, using diffe…
Flipping (renaming) a stringHello, I have a series of varnames named year2010A | year2010B | ... | year2011A | year2011B | ... …
Subscribe to:
Post Comments (Atom)
0 Response to Never allow Stata to replace dataset
Post a Comment