forked from rjwatt42/Paper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSetUp.R
48 lines (39 loc) · 1.13 KB
/
SetUp.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
40
41
42
43
44
45
46
47
48
library(mnormt) # pmnorm for logistic
library(lme4) # lmer (mixed models)
library(MuMIn) # r-squared for mixed models
library(readxl) # excel
library(writexl) # x excel
library(car) # Anova type 3 correct
library(stringr) # for str_* functions
library(clipr) # for clipboard functions
library(SuppDists) # for Johnson distributions
library(e1071) # for skewness and kurtosis
library(pracma) # for meshgridlibrary(EnvStats)
library(EnvStats) # for egamma
library(ggplot2)
library(ggimage)
library(plotly)
library(reshape)
source("runMetaAnalysis.R")
source("sampleLikelihood.R")
source("r2p.R")
source("Plots.R")
source("makeStudies.R")
LabelUD<-"D"
Pplus<-FALSE
Pchar<-"P"
# Pchar<-'\u03A9'
if (Pplus) {Ptypechar<-'+' } else {Ptypechar<-0 } #'\u2013'
Lchar<-'\u03BB'
Ltypechar<-"+"
Llabel<-Lchar
switch (LabelUD,
"U"={
Plabel<-bquote(.(Pchar)^.(Ptypechar))
Llabel<-bquote(.(Lchar)^.(Ltypechar))
},
"D"={
Plabel<-bquote(.(Pchar)[.(Ptypechar)])
Llabel<-bquote(.(Lchar)[.(Ltypechar)])
})
Slabel<-"log(likelihood)"