Hi everyone,
I want to find optimal weights to combine different forecasts by minimizing a quadratic form given some constraints. It's a quadratic programming problem of the form:
I know that this could be solved in R using the quadprog package. However, my whole analysis is set up in Stata and I would prefer solving the problem in Stata. How can I do this?
Any pointers would be appreciated, thanks!
Boris
I want to find optimal weights to combine different forecasts by minimizing a quadratic form given some constraints. It's a quadratic programming problem of the form:
min (w' * S * w) subject to sum(wi)=1 and 0<=wi<=1 for all i ,where w is a m-x-1-vector and wi is an element of w. S is a m-x-m matrix.
I know that this could be solved in R using the quadprog package. However, my whole analysis is set up in Stata and I would prefer solving the problem in Stata. How can I do this?
Any pointers would be appreciated, thanks!
Boris
Comment