Re: [R] Linear regression with constraints on the parameters.

2007-10-08 Thread Moshe Olshansky
Hi Gopi, Simple linear regression minimizes sum of squares of the residuals. So in your case you can use Quadratic Programming (see quadprog package) to introduce linear constraints. Regards, Moshe. --- Gopi Goswami <[EMAIL PROTECTED]> wrote: > Hi there, > > > Is there an existing package in

[R] Linear regression with constraints on the parameters.

2007-10-08 Thread Gopi Goswami
Hi there, Is there an existing package in R that does simple linear regression with linear constraints on the parameters? Here is the set up: y_i = \sum_{k = 1}^K \beta_k x_k + \epsilon_i where \sum_{k = 1}^K c_k \beta_k = c_0, for some known co