>I would like to know what error am I making. I am trying to run the next loop.
I don't want to write the list of countries in the "foreach" line, so I tried to call this list with a global, like follows:
gl data "C:\Users\aburg\Documents\OECD\Informality\Results \Bases Finales"
gl countries "Argentina_2018" "Bolivia_2018" "Brazil_2018" "Chile_2017" "Colombia_2018" "Costa_Rica_2018" "ElSalvador_2018" "Honduras_2014" "Mexico_2018" "Paraguay_2018" "Peru_2018" "Uruguay_2018"
foreach base in $countries {
use "$data\\`base'"
display "`base'"
tab infformix [fw=fwr]
}
>Runing this I get the following error:
invalid '"'
r(198);
Thank you very much for every one willing to help.
Related Posts with Help to shorten a loop:
standard error of 8280 in multinominal logitHi, I am analysing my data using multinominal logit. Firstly sorry that I cannot post my data and f…
Creating a local list from a variableI have the following string values for two variables. I would like to create a local list from Var1 …
Using anymatch in a forvalue loop to detect if each value in v1 matches ANY value in v2I'm struggling to come up with a solution for finding if each observation in variable 1 matches ANY …
Estimating adjusted means and 95% CI using regression stataDear all, Now i am analyzing a repeated measurable longitudinal data. by linear regress model, Y, …
Time stamps in forum softwareIs there any chance the forum software could be changed to specify time zone in the time stamps? Rig…
Subscribe to:
Post Comments (Atom)
0 Response to Help to shorten a loop:
Post a Comment