Rnewb wrote: > > I would like to perform a regression like the one below: > > lm(x ~ 0 + a1 + a2 + a3 + b1 + b2 + b3 + c1 + c2 + c3, data=data) > > However, the data has the property that a1+a2+a3 = A, b1+b2+b3 = B, and > c1+c2+c3 = C, where A, B, > Ravi Varadhan has an example how this could be done with optim http://markmail.org/message/3dd5c4rppt2bjzwj Dieter -- View this message in context: http://www.nabble.com/linear-model-with-coefficient-constraints-tp25769021p25770788.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.