Discussion: View Thread

  • 1.  R code for LAD

    Posted 02-27-2014 12:23
    This message has been cross posted to the following eGroups: Milwaukee Chapter and Young Professionals Group .
    -------------------------------------------
    Does anyone know about any R code to perform LAD(Least Absolute Deviation) Regression for Multiple Predictors ?


    -------------------------------------------
    Jasdeep Pannu
    Auburn University
    -------------------------------------------


  • 2.  RE:R code for LAD

    Posted 02-27-2014 13:03
    This website gives an overview of robust statistical methods in R:
         http://cran.r-project.org/web/views/Robust.html

    It says, "Note that Koenker's quantile regression package quantreg contains L1 (aka LAD, least absolute deviations)-regression as a special case, doing so also for nonparametric regression via splines."
         http://cran.r-project.org/web/packages/quantreg/index.html

    You might want to look at rq() function and check out the vignettes
         http://cran.r-project.org/web/packages/quantreg/vignettes/rq.pdf

    -------------------------------------------
    Jean Adams
    USGS Great Lakes Science Center
    -------------------------------------------