Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: RE: coefficients constraint in nlsur and nl does not work


From   "Brian P. Poi" <[email protected]>
To   <[email protected]>
Subject   RE: st: RE: coefficients constraint in nlsur and nl does not work
Date   Wed, 17 Nov 2010 22:03:21 -0500

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.)
>
>

Mariko,

Without seeing exactly what you typed, it's hard to say.  However, my guess
would be that the global macros $sita_pc and $s_pc2 that you used in your
original command syntax are no longer defined.

   -- Brian Poi
   -- [email protected]



*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index