View source: R/dthelper-computation-functions.R
meta.with | R Documentation |
Meta-analysis with Grouping Variable
meta.with( df, estimate = "estimate", se = "se", group = NULL, random = T, na.rm = T )
df |
data.frame object |
estimate |
Regression estimates |
se |
Regression standard errors |
group |
Grouping variable |
random |
If set to TRUE, random-effects meta-analysis will be run. If set to FALSE, fixed-effects meta-analysis will be run |
na.rm |
If set to TRUE, NAs will be ignored in computation of weights |
data.frame object
df <- data.frame( estimate = c(1,2,3,2,1,4), se = c(.1,.5,.3,.8,1,.7), group = c("a","a","a","b","b","b") ) meta.with(df, group = "group")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.