This function builds on the previously produced dmtest function and includes the modification suggested by Harvey, Leybourne, and Newbold (1997) to the test , calculates the p-value and addresses the issue with the assumption of zero covariance at 'unobserved' lags.
Jaime Trujillo (2020). dmtest_modified(e1, e2, h) (https://www.mathworks.com/matlabcentral/fileexchange/58787-dmtest_modified-e1-e2-h), MATLAB Central File Exchange. Retrieved .
Inspired by: Diebold-Mariano Test Statistic
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!