aalfons / robmed

Perform mediation analysis via a fast-and-robust bootstrap test, as well as various other methods
GNU General Public License v3.0
6 stars 0 forks source link

Remove argument 'median' #15

Closed aalfons closed 4 years ago

aalfons commented 4 years ago

Instead of using robust=TRUE and median=TRUE for median regression, use robust="median". So argument robust can either be logical (TRUE: MM regression, FALSE: OLS regression), or a character ("MM": MM regression, "median": median regression).

aalfons commented 4 years ago

An internal function is_robust() would be useful, especially if also the output structure is changed to reflect the input. Maybe functions such as have_MM() and have_median() would be useful too.

aalfons commented 4 years ago

Argument median is deprecated in version 0.6.0, with functionality robust="median" already implemented. Argument median can be deleted in a future version, probably already the next one.

aalfons commented 4 years ago

Implemented.