Hello!
I am working on a do file alongside a colleague but its commands will not load successfully and it generates an r(601) error. The code stops at the point where I instruct which file to load and it says
'file /some_data.dta' not found
However, when I type
use 'file/some_data.dta'
into the command box, it loads fine. This tells me it must be something wrong with the code in the do file itself and not the filepath I am using because it loads that loads into Stata fine. I am a MacOS user working with Stata15. Because my colleagues work on Windows, I needed to change the filenames (done to my understanding below).
Here is the code I am working with:
----------------------------------------
gl filepath ="/Users/josephkalarickal/Desktop/Google Drive/Research Assistant/Work for the Professor/Work Projects/Ongoing Projects/SkillsCountry/"
gl data ="$filepath/data"
gl dofiles ="$filepath/dofiles"
gl tempfiles ="$filepath/tempfiles"
gl results ="$filepath/results"
gl logfiles ="$filepath/logfiles"
use "$filepath/some_data.dta", clear *this is where the code breaks for some reason.
----------------------------------------
Thank you in advance for the help.
Joseph
Related Posts with Unable to read .dta file through do file - works fine otherwise
The first stage outcome estimated by "ivreg2 savefirst" different from its OLS estimationI use two specifications to estimate the first stage for the relationship between the endogenous var…
Display gamma distribution and normal curve on a histogramHello all, I am trying to create a twoway bar that will display the mean temperature per month for …
nested logit - all constraints invalid messageHi I am reposting this because i did not get any replies before. I am trying to model migration wi…
twoway bar option over() not allowedHello, I am trying to combine a clustered-type bar chart with a scatter plot (I know it's an odd co…
Replace the value of one variable with the value of different variableHi all, I am trying to code used to replace values of one variable with other values from different…
Subscribe to:
Post Comments (Atom)
0 Response to Unable to read .dta file through do file - works fine otherwise
Post a Comment