This functions fits the regression y ~ X under a linear constraint on the
model parameters. The constraint is Q
* beta = c
where beta
are the regression model parameters, and Q, c
are inputs.
restricted_OLS_c(y, X, bhat, Q, c)
Vector of outcomes.
Matrix of covariates (first column should be 1's)
Unconstrained OLS-fitted coefficients.
Matrix of linear constraints (k x p).
Vector of constraint values (k x 1).
Vector of fitted OLS coefficients under linear constraint.
Advanced Econometrics (Section 1.4, Takeshi Amemiya, 1985)