[R] What are the pros and cons of the various R functions and methods for conducting least median of squares regression analysis?

Ebert,Timothy Aaron tebert @end|ng |rom u||@edu
Sat Apr 16 23:24:01 CEST 2022


If you want to publish, please consider a standard practice amongst similar published works. If you choose a different path please include something in the methods (or results) that justifies your choice.

-----Original Message-----
From: R-help <r-help-bounces using r-project.org> On Behalf Of Avi Gross via R-help
Sent: Saturday, April 16, 2022 5:06 PM
To: r-help using r-project.org
Subject: Re: [R] What are the pros and cons of the various R functions and methods for conducting least median of squares regression analysis?

[External Email]

Kelly,
I am not going to answer your question directly as I have no experience with all those packages and others.
Your question is very broad as you have not told us what your criteria and needs are.
For some purposes, the package to use may be one that has been around, seems to continue to be supported, has had many kinks and errors straightened out and so on.
For other purposes, a package often comes with lots of other "related" functionality and often  uses names that hide other functions you may use. If a package also meets your other needs, or takes your data in the current format rather than making you rearrange first or after it returns, or other such considerations, that may be a valid set of criteria.
Do you care about various costs and overhead? You may not if your data is small and there may be a huge difference if the function does too much that you do not need or an inefficient algorithm. If your need is one-time, fine. If it will be used regularly, you may want to use some testing while measuring use of time and memory and anything else you care about which can include parallelization. In many cases, you can view the source code and sometimes even copy some and modify for your own use, especially if the function takes dozens of arguments you never expect to use and your needs are far simpler.
And, realistically, if you work with others, it may work better to use whatever they use, all else being close to equal.
I will say this is not the best place to ask such questions as the focus is on base R. Some here prefer not to have questions even about some fairly commonly used packages. But an abstract question about a plethora of packages, many not mentioned, may get more answers like mine rather than useful ones.
Good luck.


-----Original Message-----
From: Kelly Thompson <kt1572757 using gmail.com>
To: r-help using r-project.org
Sent: Sat, Apr 16, 2022 2:45 pm
Subject: [R] What are the pros and cons of the various R functions and methods for conducting least median of squares regression analysis?

What are the pros and cons of the various R functions and methods for conducting least median of squares regression analysis?

I know about these:

lqs, wth method = "lms" and lmsreg, which as I understan dit are equivalent

Mentions:
https://urldefense.proofpoint.com/v2/url?u=https-3A__www.rdocumentation.org_packages_MASS_versions_7.3-2D56_topics_lqs&d=DwIFaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=9PEhQh2kVeAsRzsn7AkP-g&m=_zEwDLlbWFk6gkuQzftAosGBSMwnq_5rS1V6hVIBZl1myUn9umKcN0VneIpmXr6B&s=vscauL07vWisvXyVoUBen_zCqfalaC3leMuTHuZst9k&e=

https://urldefense.proofpoint.com/v2/url?u=https-3A__stat.ethz.ch_pipermail_r-2Dhelp_2006-2DOctober_115681.html&d=DwIFaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=9PEhQh2kVeAsRzsn7AkP-g&m=_zEwDLlbWFk6gkuQzftAosGBSMwnq_5rS1V6hVIBZl1myUn9umKcN0VneIpmXr6B&s=t3A6uGvwbeqNIjcEiU0xGXKPnQEpm0S1qx-kT-H2C1k&e=

https://urldefense.proofpoint.com/v2/url?u=https-3A__stat.ethz.ch_pipermail_r-2Dhelp_2007-2DMarch_126564.html&d=DwIFaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=9PEhQh2kVeAsRzsn7AkP-g&m=_zEwDLlbWFk6gkuQzftAosGBSMwnq_5rS1V6hVIBZl1myUn9umKcN0VneIpmXr6B&s=BZ-1JuUHIB_EOum5w9VylKe-3p_QP8cjkG6JZYYmsHE&e=
-----

ltsReg

https://urldefense.proofpoint.com/v2/url?u=https-3A__www.rdocumentation.org_packages_robustbase_versions_0.1-2D2_topics_ltsReg&d=DwIFaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=9PEhQh2kVeAsRzsn7AkP-g&m=_zEwDLlbWFk6gkuQzftAosGBSMwnq_5rS1V6hVIBZl1myUn9umKcN0VneIpmXr6B&s=R-1kVZt-7fnTeSJMKUPosRbdUv-twsm94Z3IU1UUF-8&e=
-----
nl.lmsNM
https://urldefense.proofpoint.com/v2/url?u=https-3A__rdrr.io_cran_nlr_man_nl.lmsNM.html&d=DwIFaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=9PEhQh2kVeAsRzsn7AkP-g&m=_zEwDLlbWFk6gkuQzftAosGBSMwnq_5rS1V6hVIBZl1myUn9umKcN0VneIpmXr6B&s=tV-d0Ud9qx8-R2ImO9z_6UVRSGQjuWLFqVALtj1v8RA&e=

______________________________________________
R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see https://urldefense.proofpoint.com/v2/url?u=https-3A__stat.ethz.ch_mailman_listinfo_r-2Dhelp&d=DwIFaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=9PEhQh2kVeAsRzsn7AkP-g&m=_zEwDLlbWFk6gkuQzftAosGBSMwnq_5rS1V6hVIBZl1myUn9umKcN0VneIpmXr6B&s=8gVn_qg0HwKPP0oCbFb92VxY_lcC9QhhBQynMRosmf8&e=
PLEASE do read the posting guide https://urldefense.proofpoint.com/v2/url?u=http-3A__www.R-2Dproject.org_posting-2Dguide.html&d=DwIFaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=9PEhQh2kVeAsRzsn7AkP-g&m=_zEwDLlbWFk6gkuQzftAosGBSMwnq_5rS1V6hVIBZl1myUn9umKcN0VneIpmXr6B&s=HFLWU5EtlPJUbpaXwBiTKKc76EFfuxa2Nu7_bTVwuHA&e=
and provide commented, minimal, self-contained, reproducible code.

        [[alternative HTML version deleted]]

______________________________________________
R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see https://urldefense.proofpoint.com/v2/url?u=https-3A__stat.ethz.ch_mailman_listinfo_r-2Dhelp&d=DwIFaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=9PEhQh2kVeAsRzsn7AkP-g&m=_zEwDLlbWFk6gkuQzftAosGBSMwnq_5rS1V6hVIBZl1myUn9umKcN0VneIpmXr6B&s=8gVn_qg0HwKPP0oCbFb92VxY_lcC9QhhBQynMRosmf8&e=
PLEASE do read the posting guide https://urldefense.proofpoint.com/v2/url?u=http-3A__www.R-2Dproject.org_posting-2Dguide.html&d=DwIFaQ&c=sJ6xIWYx-zLMB3EPkvcnVg&r=9PEhQh2kVeAsRzsn7AkP-g&m=_zEwDLlbWFk6gkuQzftAosGBSMwnq_5rS1V6hVIBZl1myUn9umKcN0VneIpmXr6B&s=HFLWU5EtlPJUbpaXwBiTKKc76EFfuxa2Nu7_bTVwuHA&e=
and provide commented, minimal, self-contained, reproducible code.


More information about the R-help mailing list