Skip to content
Prev 168622 / 398502 Next

scoping rules for 'for' [was - Re: for/if loop ]

Hi ya, thanks a lot everyone!! I changed rr:ii-1 to rr:(ii-1) and the code
works!!! I finally get some estimates from the optimization function (i am
doing a logit model with 2 segments). Thanks thanks!!!
I didn't realize rr:(ii-1) and rr:ii-1 would make such a big difference,
especially because the professor used rr:ii-1 in his Gauss code. I didn't
realize it means so much different in R!
davidr-2 wrote: