I want to use preserve and make edits/modifications to the dataset and in the process a column variable2 is created using this modified dataset. Now I want to restore the original dataset but also have this variable2 column. What can I do? The only thing I can imagine is saving the old dataset rather than using preserve, then saving the modified dataset with the variable2 and then finally merging them where I keep only variable2. But is there an easier and better way to do this? I imagine Stata or someone might have created a package because this seems to a very general use algorithm.
Thanks
Thanks
Comment