Hello!
I am trying to estimate a Linear expenditure system with the nlsur command. I want to have a constraint on the beta-parameters so they sum to 1. With 2 parameters I do it like in the code but I don't know how to do it when I add another equation Y4 that will estimate b2, b3 and b4 with the constraint: b2+b3+b4 = 1
With two parameters I do like this:
How do I constrain with more than 2 parameters? b2+b3+b4 = 1
Thank you in advance!
I am trying to estimate a Linear expenditure system with the nlsur command. I want to have a constraint on the beta-parameters so they sum to 1. With 2 parameters I do it like in the code but I don't know how to do it when I add another equation Y4 that will estimate b2, b3 and b4 with the constraint: b2+b3+b4 = 1
With two parameters I do like this:
Code:
. nlsur (Y2=P2*{g2}+{b2}*(M-P3*{g3})) (Y3=P3*{g3}+(1-{b2})*(M-P2*{g2}))
Code:
. nlsur (Y2=P2*{g2}+{b2}*(M-(P3*{g3}+P4*{g4}))) (Y3=P3*{g3}+{b3}*(M-(P2*{g2}+P4*{g4}))) (Y4=P4*{g4}+{b4}*(M-(P3*{g3}+P2*{g2})))
Comment