Dear list,
Happy Friday. So I downloaded a data set from the Bureau of Labor Statistics (in the U.S.) and was using the do file provided by them to label all the variables and their values in the data set. However, in their do file, they used a lot of syntax like this:
which turns out to be invalid syntax on my end. The problem is the quotes within quotes. What I can do is to remove those quotes within quotes so that 1 "RESPONDENT IS IN LABOR FORCE GROUP "A"" becomes 1 "RESPONDENT IS IN LABOR FORCE GROUP A" and then everything works fine. However, since they provided this do file, I guess it must have worked on their side (at least when they created such do files using their older version of Stata). Also, there are too many such cases in the do file with various texts affected so it is inefficient for me to use find and replace to modify all the places manually. Is there a trick that I can apply, such as temporarily change my Stata version, which is 15, to a lower version?
Thanks!
Happy Friday. So I downloaded a data set from the Bureau of Labor Statistics (in the U.S.) and was using the do file provided by them to label all the variables and their values in the data set. However, in their do file, they used a lot of syntax like this:
Code:
label define vlR0026100 1 "RESPONDENT IS IN LABOR FORCE GROUP "A"" 2 "RESPONDENT IS IN LABOR FORCE GROUP "B"" 3 "ALL OTHERS"
Thanks!
Comment