I am fitting a simple regression in R on gas usage per capita. The regression formulas looks like:
gas_b<-lm(log(gasq_pop)~log(gasp)+log(pcincome)+log(pn)+log(pd)+log(ps)+log(years),data=gas) summary(gas_b)
I want to include a linear constraint that the beta coefficients of log(pn)+log(pd)+log(ps)=1 (sum to one). Is there a simple way of implementing this (possibly in the lm package) in R without having to use constrOptim() function?
Thanks, Thomas