Hi,
I updated runlwin today (using adoupdate runmlwin, update), and now none of my models will run! Do files that were running fine this morning are now stuck and give the error message "too few quotes". Has something changed about the syntax?
Thanks
Laura
error: too few quotes
-
- Posts: 1384
- Joined: Mon Oct 19, 2009 10:34 am
Re: error: too few quotes
The syntax should still match that in the help file, however it is possible that one of the undocumented options may have changed. Alternatively a bug may have crept in that wasn't picked up in testing. Would it be possible for you to provide an example of the syntax that fails?
Re: error: too few quotes
Hi Chris,
Here's the syntax:
global MLwiN_path C:\Program Files\MLwiN v2.22\mlwin.exe
foreach var of varlist fpm2 {
runmlwin bmi cons `var', level2 (id: cons, reset(none)) level1 (occ: cons) nopause maxiterations(100)
}
Have tried running old do files, which definitely worked before I updated, and they are all giving the same error message.
Thanks,
Laura
Here's the syntax:
global MLwiN_path C:\Program Files\MLwiN v2.22\mlwin.exe
foreach var of varlist fpm2 {
runmlwin bmi cons `var', level2 (id: cons, reset(none)) level1 (occ: cons) nopause maxiterations(100)
}
Have tried running old do files, which definitely worked before I updated, and they are all giving the same error message.
Thanks,
Laura
-
- Posts: 1384
- Joined: Mon Oct 19, 2009 10:34 am
Re: error: too few quotes
Thanks for this. It appears that a bug has been introduced when parsing the reset option, which is what was causing your error. I have fixed this in the development version so it should be fixed next time we do an update. In the meantime you can either run the models without the reset option, or if you are happy editing the runmlwin.ado file you can fix the problem in your version by changing the line:
if "`all'" == "" & "`variances' == "" & `none' == "" {
to
if "`all'" == "" & "`variances'" == "" & "`none'" == "" {
if "`all'" == "" & "`variances' == "" & `none' == "" {
to
if "`all'" == "" & "`variances'" == "" & "`none'" == "" {
Re: error: too few quotes
Thanks Chris, have edited the ado file and it's now running fine