I want to do a linear regression y = ax1+bx2+cx3+dx4+e, while a+b+c+d=1 and a,b,c,d>0. I have tried to use "nl (y = exp({lna})*x1 + exp({lnb})*x2+ exp({lnc})*x3+ exp({lnd})*x4+{e}),nolog" to keep a,b,c,d positive. But how can I correctly add the constraint a+b+c+d=1 into this regression? Can anyone help?
Thank you very much.
Thank you very much.
Comment