File Exchange

image thumbnail

dmtest_modified(e1, e2, h)

version (3.2 KB) by Jaime Trujillo
The Diebold-Mariano Test (Modified as per Harvey, Leybourne, and Newbold (1997))


Updated 10 Nov 2016

View Version History

View License

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 (2020). dmtest_modified(e1, e2, h) (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

Cristian Bulete

dmtest_modified(e1, e2, h) and dmtest_modified(e2, e1, h) give different results. Why is that ? Thank you.

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: Diebold-Mariano Test Statistic

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!