guido-s / meta

Official Git repository of R package meta
http://cran.r-project.org/web/packages/meta/index.html
GNU General Public License v2.0
82 stars 32 forks source link

Function to extract effect size estimates from fitted objects #53

Closed sfg closed 1 year ago

sfg commented 1 year ago

Classification of issue

Summary

A function which cam extract the table with effect-size estimates from fitted meta-regression objects, e.g.:

m1 <- metaprop(4:1, 10 * 1:4)
summary(m1)
  proportion           95%-CI
1     0.4000 [0.1216; 0.7376]
2     0.1500 [0.0321; 0.3789]
3     0.0667 [0.0082; 0.2207]
4     0.0250 [0.0006; 0.1316]
...
# output truncated

Or is there a convenient way to extract the table with proportions and CI from the object?

Regards, Sven

guido-s commented 1 year ago

Sven,

I added new functions extract() and extract.meta(), see https://github.com/guido-s/meta/blob/develop/R/extract.R or help(extract.meta) after installing the current development version of meta.

Best, Guido