Not a problem, Nick. Here's the code followed by the error message:
. forval i = 1/`N_names' {
2. mata: st_local("eachname", name[`i'])
3. replace disciplinecomments = subinword (disciplinecomments, "`eachname'", "", .)
4. }
invalid syntax
r(198);
For all of the preceding code that Mike provided, I simply edited the text according to my needs.
I'm using an up-to-date version of Stata 13.1.
. forval i = 1/`N_names' {
2. mata: st_local("eachname", name[`i'])
3. replace disciplinecomments = subinword (disciplinecomments, "`eachname'", "", .)
4. }
invalid syntax
r(198);
For all of the preceding code that Mike provided, I simply edited the text according to my needs.
I'm using an up-to-date version of Stata 13.1.
Comment