Be the first to rate this file! 17 Downloads (last 30 days) File Size: 34.8 KB File ID: #25715
image thumbnail

Symbolic Derivatives for Econometric Tests

by

 

02 Nov 2009 (Updated )

How to calculate derivatives required by Econometric Toolbox tests via Symbolic Math Toolbox

| Watch this File

File Information
Description

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.

Required Products Econometrics Toolbox
Symbolic Math Toolbox
MATLAB release MATLAB 7.9 (R2009b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Updates
24 Nov 2009

Changed the copyright notice and added a trademark symbol.

08 Feb 2010

Showed how to use Statistics Toolbox to compute the same test.

08 Feb 2010

Updated HTML files.

Contact us