Is there a routine to perform quantile regression or LAD (Least Absolute Deviations) in MATLAB?

조회 수: 5 (최근 30일)
I would like to know if there is a routine to perform quantile regression or LAD (Least Absolute Deviations) in MATLAB.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2009년 6월 27일
MATLAB does not have any functions that perform Quantile Regressions.
However, you can solve Quantile Regression problems using the Optimization Toolbox. One of the functions from this toolbox that can be used towards this is FMINUNC. To use this function for LAD regression, you will need to set up your problem such that sum of the absolute values of the residuals is your objective function, which needs to be minimized.
The Statistics Toolbox contains the ROBUSTFIT function that might also be useful in solving Quantile Regressions. The ROBUSTFIT function performs linear regressions. You might be able to work with or modify this function to suit your needs.
Finally, third party tools may be available. One example is the Econometrics Toolbox provided by James P. LeSage. An internet search on "econometrics toolbox James Lesage" may provide a link to the site. Please note that third party tools are not supported or maintained by MathWorks. All questions regarding these tools should be directed to the toolbox author.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Linear Regression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by