Bookmark and Share

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

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

st: imposing cross-equation constrains with nlsur

From   ABDUL ADAM <>
To   "" <>
Subject   st: imposing cross-equation constrains with nlsur
Date   Tue, 7 Jun 2011 11:32:46 -0700 (PDT)

Dear All,

I am  estimating a system of equations by nlsur and I am trying to impose demand theory restrictions but I am unable to get what I want. I have 14 equations, but for illustration, I take only three here:

constraint 2 [w1]exp1 + [w2]exp2 + [w3]exp3 = 0
nlsur(w1=capphi1*({a1}+{lag11}*l1w1+{p11}*lnp1+{p12}*lnp2+{p13}*lnp3+{exp1}*expP +res)+ /// {ph1}*phi1) ///
(w2=({a2}+{lag22}*l1w2+{p21}*lnp1+{p22}*lnp2+{p23}*lnp3+{exp2}*expP +res)) ///
(w3=capphi3*({a3}+{lag33}*l1w3+{p31}*lnp1+{p32}*lnp2+{p33}*lnp3+{exp3}*expP +res)+ ///
{ph3}*phi3), constraints(2) 

I am getting this error back:constraints(2) not allowed. I tried to figure out how to solve this but to no avail. I appreciate any advice/help on this. 

Kind Regards,

*   For searches and help try:

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