Linear Reg. & coeff>0

Tsung-Hsin Lin (tlin@leland.Stanford.EDU)
Tue, 27 Jan 1998 16:40:19 -0800 (PST)


Dear S+ users:

I'd like to ask how to fit a linear regression model

with the constraint that for all coeff>0 and no intercept term

at the same time?

In my understanding till now,

a1<-lm(y~X1+X2-1)

But how can I confirm that coeff>0 definitely?

Thanks for your help!