Is there a routine to perform quantile regression or LAD (Least Absolute Deviations) in MATLAB?
2 views (last 30 days)
Show older comments
I would like to know if there is a routine to perform quantile regression or LAD (Least Absolute Deviations) in MATLAB.
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
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 Comments
More Answers (0)
See Also
Categories
Find more on Linear Regression in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!