Be the first to rate this file! 1 Download (last 30 days) File Size: 34.78 KB File ID: #25715
image thumbnail

Symbolic Derivatives for Econometric Tests

by Alan Weiss

 

02 Nov 2009 (Updated 08 Feb 2010)

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 (2009b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags 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.

Tag Activity for this File
Tag Applied By Date/Time
symbolic Alan Weiss 24 Nov 2009 11:10:40
matlabfunction Alan Weiss 24 Nov 2009 11:10:41
jacobian Alan Weiss 24 Nov 2009 11:10:41
derivative Alan Weiss 24 Nov 2009 11:10:41
gradient Alan Weiss 24 Nov 2009 11:10:41
econometrics Alan Weiss 24 Nov 2009 11:10:41
lmtest Alan Weiss 24 Nov 2009 11:10:41
waldtest Alan Weiss 24 Nov 2009 11:10:41
score Alan Weiss 24 Nov 2009 11:10:41
covariance Alan Weiss 24 Nov 2009 11:10:41

Contact us at files@mathworks.com