Re: [R] Constraint Linear regression

2012-03-20 Thread Gabor Grothendieck
On Tue, Mar 20, 2012 at 12:54 AM, priya fernandes wrote: > Hi there, > > I am trying to use linear regression to solve the following equation - > > y <- c(0.2525, 0.3448, 0.2358, 0.3696, 0.2708, 0.1667, 0.2941, 0.2333, > 0.1500, 0.3077, 0.3462, 0.1667, 0.2500, 0.3214, 0.1364) > x2 <- c(0.368, 0.53

Re: [R] Constraint Linear regression

2012-03-20 Thread R. Michael Weylandt
Due to perfect collinearity, your regression isn't unique so you're not going to be able to even solve the unconstrained version of this problem. Michael On Tue, Mar 20, 2012 at 12:54 AM, priya fernandes wrote: > Hi there, > > I am trying to use linear regression to solve the following equation

[R] Constraint Linear regression

2012-03-20 Thread priya fernandes
Hi there, I am trying to use linear regression to solve the following equation - y <- c(0.2525, 0.3448, 0.2358, 0.3696, 0.2708, 0.1667, 0.2941, 0.2333, 0.1500, 0.3077, 0.3462, 0.1667, 0.2500, 0.3214, 0.1364) x2 <- c(0.368, 0.537, 0.379, 0.472, 0.401, 0.361, 0.644, 0.444, 0.440, 0.676, 0.679, 0.62