Skip to content
Prev 4796 / 5636 Next

[R-meta] Calculating standard errors from confidence interval and weights assigned

This aside, the syntax rma(yi, sei, data) is wrong, since the second argument to rma() is 'vi', which is for the *sampling variances* (i.e., the squared standard errors). So, either do rma(yi, sei^2, data) or use the appropriate argument for passing the standard errors, that is, rma(yi, sei=sei, data).

In recent versions of metafor, rma() actually tries to check for this (based on the variable name specified for the 'vi' argument), so syntax like rma(yi, sei) should yield a warning about this.

Best,
Wolfgang