Description Usage Arguments Examples
View source: R/bf_meta_random.R
Bayes factor for random-effects meta-analysis
1 | bf_meta_random(data, metaBMA.args = list(), ...)
|
data |
A dataframe. It must contain columns named |
metaBMA.args |
A list of additional arguments to be passed to
|
... |
Arguments passed on to
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | # setup
set.seed(123)
library(metaBMA)
# creating a dataframe
(df <-
structure(
.Data = list(
study = c("1", "2", "3", "4", "5"),
estimate = c(
0.382047603321706,
0.780783111514665,
0.425607573765058,
0.558365541235078,
0.956473848429961
),
std.error = c(
0.0465576338644502,
0.0330218199731529,
0.0362834986178494,
0.0480571500648261,
0.062215818388157
)
),
row.names = c(NA, -5L),
class = c("tbl_df", "tbl", "data.frame")
))
# to get dataframe
bf_meta_random(
data = df,
k = 3,
metaBMA.args = list(iter = 500, rscale_discrete = 0.880),
output = "dataframe"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.