Skip to content
Prev 528 / 5632 Next

[R-meta] Post-hoc weighted analysis based on number of observations

Dear Wolfgang,

Thanks so much for your reply. You have captured the essence of the question perfectly. 

I have successfully scaled the meta-analysis-derived SE, so I have basically produced a global map of the SE of the effect:

SE <- predict(meta, 
                    newmods = cbind(s.df$precipitation, s.df$temperature, CO2inc, s.df$temperature*CO2inc))$se


However, as you said, some locations, in this case ecosystems (e.g. tropical forests) are poorly represented in the dataset. Therefore, a proper assessment of the uncertainties of the approach should account for the uncertainty associated with the sampling effort (or the lack of) in some regions. Reviewers will check this for sure.

It turns out that ecosystem type, per se, is not a good predictor, thus including it in the meta-regression probably does not make much sense (or maybe yes). I was thus thinking more on a post-hoc solution, not necessarily in a meta-analytic context, so maybe this distribution list is not the right place to ask this question. The idea is to increase SE in pixels dominated by ecosystems that are poorly sampled. The final quantification of uncertainties would thus be an aggregation of the SEs and some sort of multiplier that adds uncertainty in a particular pixel as a function of the representativeness of the type of ecosystem in that pixel.

For example:

group_by(ecosystem_type) %>% summarise(n = n()) %>% mutate (weight = n/sum(n))
	
SEw= max(SE,na.rm=T) - max(SE,na.rm=T)*weight, 

SEsum = SE + SEw

SEsum would thus be the sum of SE and another level of error driven by the sample size of the type of ecosystem, and constrained to fall within the range of observed SE from the dataset.

But I think this approach is not very elegant. Any other ideas?
Thanks
C?sar