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
Rigobon and Sack 2003 "Measuring the reaction of monetary policy to the stock market" - ReplicatePaper link: <https://www.federalreserve.gov/pubs/.../200114pap.pdf> I have some questions on …
Exporting output of ManWitney U TestHi, I am unable to find a way to export output of ManWitney U (ranksum) Test for independent samples…
How to export the results of Wald-test/F-test to excel using outreg2 or any other alternative?Hi every one, I am using the following code Code: reg CAR01 NU_SUE NUE_D1 NUE_D2 logmcap lag_p…
Match cross-linked observationsDear Statalist, I have a large dataset that consolidates identical observations from 3 sources that…
Can lpoly/lowess/npregress be used in a survival analysis context?Hi experts, I know that in STATA we can use the logit command to fit a discrete-time logistic hazar…
Subscribe to:
Post Comments (Atom)
0 Response to Unable to read .dta file through do file - works fine otherwise
Post a Comment