dmtest_modified(e1, e2, h)

The Diebold-Mariano Test (Modified as per Harvey, Leybourne, and Newbold (1997))

You are now following this Submission

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.

Cite As

Jaime Trujillo (2026). dmtest_modified(e1, e2, h) (https://ch.mathworks.com/matlabcentral/fileexchange/58787-dmtest_modified-e1-e2-h), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: Diebold-Mariano Test Statistic

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.3.0.0

update
p-value has been adjusted

1.2.0.0

revised

1.0.0.0