Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | 渡邉真理子 <mariko.wt@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: RE: coefficients constraint in nlsur and nl does not work |
Date | Thu, 18 Nov 2010 11:43:09 +0900 |
Dear Mr.Poi, Thank you for your kind guidance. I did try it again according to your suggestion, then Stat says "too few variables specified". But , is it in this case? I could not understand. Mariko > -------------- > > Mariko, > > When you specify a linear combination with -nlsur-, you should only specify > the variables once. To refer to the linear combination again in your > function, you specify just the name and colon, not the variables that go > along with it. I think your syntax should be > > . nlsur (y1 =(A)*({bg: $sita_pc}+{mc})/({mc}-{ef: $s_pc2} + {bg:})) /// > (y2 = {ef:}/({bg:}+{mc})) > > > (Arguably -nlsur- should probably exit with an error if you try and define a > linear combination twice, but it didn't in your case.) > > > -- Brian Poi > -- brian@poiholdings.com > > > * > * For searches and help try: > * http://www.stata.com/help.cgi?search > * http://www.stata.com/support/statalist/faq > * http://www.ats.ucla.edu/stat/stata/ > * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/