Note: I do not have very much experience in using R.
I am trying to do a meta-analysis using the metafor package in R. However I have run into an obstacle I haven't been able to surmount myself, which is that I don't know any of the sampling variances for the studies included or how to calculate them from any values that I do know. So for the basic linear meta-analysis function it looks like: rma.uni(yi,vi) I am able to define the vector yi, just the effect sizes, but I don't know how to get the sampling variances for each study that are supposed to comprise vi. I've been trying repeatedly to calculate the sampling variances using escalc (another metafor function) but that has generated only error messages.
The numbers I am trying to meta-analyze are ratios of whole numbers (hypothetical example: 4/7). Both whole numbers are count data, so they are always whole numbers by definition in the original studies from which I obtained them. If anyone asks for more details I'll be glad to provide them.