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   渡邉真理子 <[email protected]>
To   [email protected]
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
>   -- [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/
>

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