Is there a routine to perform quantile regression or LAD (Least Absolute Deviations) in MATLAB?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I would like to know if there is a routine to perform quantile regression or LAD (Least Absolute Deviations) in MATLAB.
Respuesta aceptada
MathWorks Support Team
el 27 de Jun. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Linear Regression en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!