Symbolic Derivatives for Econometric Tests
Two Econometrics Toolbox functions, lmtest and waldtest, require you to give derivative estimates or covariance estimates as inputs. How are you supposed to calculate those inputs? This demo shows how to calculate them using the Symbolic Math Toolbox jacobian function for gradients and covariances (via Hessians), and matlabFunction for turning those gradients and covariances into function handles or files.
The demo is similar in some ways to those showing how to use symbolic functions for optimization. The difference is largely that econometrics uses data. The demo shows how to use data as an input for econometrics functions symbolically.
Cite As
Alan Weiss (2024). Symbolic Derivatives for Econometric Tests (https://www.mathworks.com/matlabcentral/fileexchange/25715-symbolic-derivatives-for-econometric-tests), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Computational Finance > Econometrics Toolbox >
- Mathematics and Optimization > Symbolic Math Toolbox > Mathematics > Calculus >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.4.0.1 | Updated license |
|
|
1.4.0.0 | Converted to a Toolbox, to enable easy installation in R2014b and later. |
||
1.3.0.0 | Updated HTML files. |
||
1.2.0.0 | Showed how to use Statistics Toolbox to compute the same test. |
||
1.1.0.0 | Changed the copyright notice and added a trademark symbol. |
||
1.0.0.0 |