Restrict the range of coefficients in varm function
3 次查看(过去 30 天)
显示 更早的评论
I was trying to run a VAR model, with restrictions on the coefficients that it cannot be negative. For example, in
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1332640/image.png)
I want all the
.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1332645/image.png)
Is there a way to implement such constraint in the function varm() or estimate() in the econometrics toolbox? Thanks!
0 个评论
回答(1 个)
Rijuta
2023-4-21
Hi,
I understand that you are the econometrics toolbox in MATLAB to provide built-in support for imposing constraints on coefficients, such as non-negativity constraints, in the ‘varm’ or ‘estimate’ functions for fitting vector autoregressive (VAR) models.
Unfortunately, this is currently not possible in MATLAB. However, if possible, you can implement such constraints (coefficient > 0) on your own by modifying the estimated coefficients after estimating the VAR model using the econometrics toolbox.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Vector Autoregression Models 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!