Newey-West standard errors with nlinfit

조회 수: 4 (최근 30일)
Nicholas Labelle
Nicholas Labelle 2013년 11월 16일
Hi,
Most people using the Econometrics toolbox know the function hac to calculate heteroscedasticity and autocorrelation consistent covariance estimators (<http://www.mathworks.com/help/econ/hac.html)>.
If the model is non linear or hard to write in Wilkinson Notation (<http://www.mathworks.com/help/stats/fitlm.html)>, then nlinfit (or the most recent fitnlm) might be quite handy.
The question is then: is MATLAB currently capable of providing Newey-West standard errors for nlinfit (or fitnlm) outputs? There is the RobustWgtFun option, but there is no option currently able to accomplish this it seems. Most File-Exchange codes are for straightforward linear models, including NeweyWest(e,X,L) (<http://www.mathworks.com/matlabcentral/fileexchange/41275-newey-west-standard-errors)>.
Many thanks for your thoughts on this,
Nic

답변 (0개)

카테고리

Help CenterFile Exchange에서 Conditional Mean Models에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by