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 12:34:54 +0900
Dear Brian,
Thank you .
What I typed are as follows:
nlsur( transactionvolume_s =(cashstock2001)*({bg:
$sita_pc}+{mc})/({mc}-{ef: $s_pc2}+{bg:})) (postpayment_s = {ef:
$s_pc2}/({bg: }+{mc}))
I did also exted all variables without using global command.
nlsur( transactionvolume_s =(cashstock2001)*({bg:
inputshareofsupplier potentialsupplier
ln_startyear_s}+{mc})/({mc}-{ef: repaid_p_sim delayed_p_sim
default_p_sim}+{bg: })) (postpayment_s = {ef:}/({bg:}+{mc}))
But, both get the same ansuwer: two few variable specified.
Mariko
2010/11/18 Brian P. Poi <[email protected]>:
> 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/
>
*
* 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/