[R-meta] calculation of weighted median instead of weighted mean

Michael Dewey ||@t@ @end|ng |rom dewey@myzen@co@uk
Sun Dec 18 10:28:51 CET 2022


Dear Mohamed

Does
https://cran.r-project.org/package=metamedian
do what you want?

Michael

On 17/12/2022 21:51, Mohamed Rahouma wrote:
> Greetings
> I am trying to calculate weighted median instead of weighted mean for
> meta-analysis.
> I used to use `metamean` but unfortunately no `metamedian` if the data was
> skewed.
> I saw [this][1] but it is irrelevant in case of meta-analysis.
> I appreciate any help or guidance on this.
> 
> Here is my prior code.
> 
> ```
> library(meta)
> data(Fleiss1993cont)
> # Meta-analysis of weighted mean from each study in a *single arm
> meta-analysis*
> m1 <- metamean(n.psyc, mean.psyc, sd.psyc,   data = Fleiss1993cont, studlab
> = study); forest(m1)
> ```
> I posted my question in stackoverflow.com (Link:
> https://stackoverflow.com/questions/74804396/how-do-i-calculate-weighted-median-instead-of-weighted-mean-for-single-arm-meta
> )
> 
> Appreciate your help and guidance and help
> 
>    [1]:
> https://stackoverflow.com/questions/2748725/is-there-a-weighted-median-function

-- 
Michael
http://www.dewey.myzen.co.uk/home.html



More information about the R-sig-meta-analysis mailing list