forked from nicebread/meta-showdown
/
0-start.R
40 lines (35 loc) · 1.29 KB
/
0-start.R
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
36
37
38
39
#source("0-start.R")
#install.packages(c("devtools", "MASS", "pwr", "truncnorm", "truncdist", "dplyr", "data.table", "foreach", "doMC", "meta", "progress", "doMC", "reshape2", "metafor", "notifyR", "broom", "weightr", "doParallel", "gtools", "weightr", "rio", "gridExtra", "invgamma"))
# devtools::install_github("RobbievanAert/puniform")
# installed version 0.1.0 on 2018/06/08
# We need R >= 3.3.3 and weightr version >= 1.1.2!
if(packageVersion("weightr") < "1.1.2") stop("you need to update 'weightr'!")
library(MASS)
library(pwr)
library(compiler)
library(truncnorm)
library(truncdist)
library(reshape2)
library(dplyr)
library(data.table)
library(foreach)
library(doMC)
library(meta)
library(metafor)
library(progress)
library(notifyR)
library(broom)
library(puniform)
library(weightr)
source("helpers/helpers.R")
source("sim-studies/sim-studies.R", chdir=TRUE)
source("MA-methods/1-RMA.R")
source("MA-methods/2-p-curve.R")
source("MA-methods/3-PET-PEESE.R")
source("MA-methods/4-p-curve skewness.R")
source("MA-methods/5-p-uniform.R")
source("MA-methods/6-WAAP.R")
source("MA-methods/7b-selection.meta.functions.R")
source("MA-methods/7-Selection Models.R")
#source("MA-methods/10-ensemble.R")
#source("MA-methods/8-betaSM.R", chdir=TRUE) # must chdir=TRUE to load the helper functions in /betaSM_functions