Dear,
I met a problem today, and tried many times and it didn't work. I wrote down a foreach systax, but it always shows that { required. In fact, I have already included { } in my program. Please read the following:
local w1 “domsaving netsaving srate edu infla ss ss2”
local w2 “insur8 fd1 sex_unsafe rategap old young"
foreach v of varlist `w1' `w2' {
replace `v'= `v'/100
}
{ required
r(100);
end of do-file
Best,
Eddie
I met a problem today, and tried many times and it didn't work. I wrote down a foreach systax, but it always shows that { required. In fact, I have already included { } in my program. Please read the following:
local w1 “domsaving netsaving srate edu infla ss ss2”
local w2 “insur8 fd1 sex_unsafe rategap old young"
foreach v of varlist `w1' `w2' {
replace `v'= `v'/100
}
{ required
r(100);
end of do-file
Best,
Eddie
Comment