Imposing Restrictions
Posted: Fri Oct 30, 2009 6:53 pm
Deal all,
Can anyone please help me how to impose a restriction in a linear model? I have the following model in that sum of the coefficients add up to one:
I need to impose another restriction so that both coefficients have to be non-negative.
Any comments would be greatly appreciated.
Yuyi
Can anyone please help me how to impose a restriction in a linear model? I have the following model in that sum of the coefficients add up to one:
Code: Select all
y=c(1)*x + (1-c(1))*z.Any comments would be greatly appreciated.
Yuyi