STATA

Copy file from one folder to another using Stata

To copy a file from one directory to another or from one folder to another in Stata, we use the “copy” command. If we want to copy “image.png” from Folder1 to Folder2, then we will use the following command copy “D:\copy file\folder1\image.png” “D:\copy file\folder2\” Once executed, this command would copy the image in the Folder …

Copy file from one folder to another using Stata Read More »

Drop Variables and Drop Observations Based on Conditions in Stata

Drop and Keep commands are used for dropping or keeping the variables. These commands can also be used to drop values of certain variables. They both work somewhat similarly except for one difference these two commands are two phases of the same kind, i.e., you either drop certain variables or keep those variables. For the …

Drop Variables and Drop Observations Based on Conditions in Stata Read More »