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
Generating Descriptive GraphHi all, I have individual-year data where my variable of interest is a transition into employment (…
local smoothing regression on binary outcome variable and predict the probabilityHi experts! Can I use the STATA command lpoly on a binary outcome variable? The examples on lpoly's…
Tabulating same variable with different restrictions in the same tableHi fellow forum members, I'm trying to tabulate frequencies of the same variable in multiple columns…
Force Stata to not omit a variable and make consistent with an output in RI am using Stata 15. I have a situation where one of the independent dummy variables (election) is …
reshaping from long to long dataHi Everyone, I have a dataset that I want to reshape it from long format to long format. My dataset …
Subscribe to:
Post Comments (Atom)
0 Response to Never allow Stata to replace dataset
Post a Comment