I’m looking for something similar in form to weighted.mean(). I’ve found some solutions via search that write out the entire function but would appreciate something a bit more user friendly.
I’m looking for something similar in form to weighted.mean() . I’ve found some solutions
Share
The following packages all have a function to calculate a weighted median: ‘aroma.light’, ‘isotone’, ‘limma’, ‘cwhmisc’, ‘ergm’, ‘laeken’, ‘matrixStats, ‘PSCBS’, and ‘bigvis’ (on github).
To find them I used the invaluable findFn() in the ‘sos’ package which is an extension for R’s inbuilt help.
Or,
???'weighted median'as ??? is a shortcut in the same way
?some.functionis forhelp(some.function)