I'm trying to calculate a weighted variance for a group of studies in a meta analysis for which I have individual means and variances:
variance #available variance values for studies
[1] 0.705600 NA 2.102500 0.672400 0.980100 0.494209 NA 5.317636
4.431025 NA NA
[12] 0.184900
number2 #patient numbers for studies with variance
[1] 16 NA 52 15 42 22 NA 114 40 NA NA 48
Do I need to use a weighted variance function like wtd.var from Hmisc? Or can I simply weight the variance values according to the sample size in a similar way to weighted means?
When I use the wtd.var function on the above data I get a weighted variance 2.35 which is higher than the variance in any of the studies. Intuitively I expected the weighted variance to be somewhere between the min and max values of the individual study variances.
Thanks so much in advance for the help, I'm new to R and statistics and really struggling!