You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#' Missingvalues are checked again, should be non.. # update 8.4.21 -> there are missings.. as shock, time res.sus split are still in data
106
-
# which(is.na(data1))
107
-
108
-
data4 %>% select(!c("shocks.num", "shocks.amp", "time","res.sus.split")) %>% filter(!(is.na(.))) %>% nrow() # is idem als total (=1643)
109
-
110
-
#' update 19.3.19: na toevoeging "keyfinding", sommmige na, anders niet.
111
-
# head(is.na(data1))
105
+
# check which column contain missing values (confirm they are not in n, sd/sem, m)
106
+
colnames(data4)[ apply(data4, 2, anyNA) ]
112
107
```
113
108
114
109
## Calculation of effect sizes and checks
@@ -118,20 +113,17 @@ data5 <- escalc(
118
113
m2i = meanHC, sd2i = as.numeric(sdHC), n2i = nHC,
119
114
measure = "SMD", #method = "HE", # calc hedge's G
120
115
data = data4)
116
+
#' INTERPRETATION: Viechtbauer, W. (2010). Conducting Meta-Analyses in R with the metafor Package. Journal of Statistical Software, 1–48. Page 7
117
+
#' "SMD": The standardized mean difference is equal to (m1i m2i)/spi
118
+
#' In the calulations above 1 = ptsd en 2 = control; therefore positive effect size = PTSD more, negative effectsize is HC more
121
119
```
122
120
123
121
## Recode Effect sizes in same direction (higher score = better performance)
124
-
NB variable recodecontains extinction recode codes were higher scores (higher anxiety) is coded as more memory persistence (would correspond to less extinction)
122
+
NB variable 'recode.for.ext' (originally specified in "Trace_methode_codes.csv") contains extinction recode codes for measures where higher scores (e.g. higher anxiety) corresponds to stronger memory persistence (e.g. less extinction)
125
123
126
124
```{r}
127
125
#' Based on recode variable, which is specified in "Trace_methode_codes.csv"
128
-
# data5$yi <- data5$yi * data5$recode
129
126
data5$yi <- data5$yi * data5$recode.for.ext
130
-
131
-
#' INTERPRETATION: Viechtbauer, W. (2010). Conducting Meta-Analyses in R with the metafor Package. Journal of Statistical Software, 1–48. Page 7
132
-
#' "SMD": The standardized mean difference is equal to (m1i m2i)/spi
133
-
#' In the calulations above 1 = ptsd en 2 = control; therefore positive effect size = PTSD more, negative effectsize is HC more
0 commit comments