I'm having problems doing OLS in R using the lm()
function on the following linear model:
$Y_t = \bar{Y} \cdot (1-a-b-c) + a \cdot X_{1t} + b \cdot X_{2t} + c \cdot X_{3t} + \varepsilon_{t}$
where $\bar{Y}$ is the sample mean. Moreover, the parameters need to satisfy the following constraints: $a,b,c\geq 0$ and $a+b+c<1$ in order for $Y_t$ to be valid.
To be completely honest, I'm not sure this is even a linear regression problem, due to the inequality constraints. However, in the textbook I'm following, it is vaguely specified that the above problem can be estimated using OLS, however I'm open to other suggestions. Also, if you use another method, I would like to know how to acquire the standard errors from the estimation procedure. Feel free to cook up an example using random data.