# First Study
empcov2 <- matrix(c(1.00, 0.45, 0.57, 0.18,
0.45, 1.00, 0.31, 0.66,
0.57, 0.31, 1.00, 0.40,
0.18, 0.66, 0.40, 1.00), nrow=4, ncol=4)
delta_t2 <- 12
sampleSize2 <- 148
moderator2 <- c(1, 0.72)
source2 <- c("Houkes, I,", "Janssen, P, P, M,", "de Jonge, J",
"& Bakker, A, B", "Study1", "2003")
addedByResearcher2 <- "something you want to add"
# Second Study
empcov3 <- matrix(c(1.00, 0.43, 0.71, 0.37,
0.43, 1.00, 0.34, 0.69,
0.71, 0.34, 1.00, 0.50,
0.37, 0.69, 0.50, 1.00), nrow=4, ncol=4)
delta_t3 <- 12
sampleSize3 <- 88
moderator3 <- c(1, 0.72)
source3 <- c("Houkes, I,", "Janssen, P, P, M,", "de Jonge, J",
"& Bakker, A, B", "Study2", "2003")
addedByResearcher3 <- ""
# Third Study
empcov313 <- matrix(c(1.00, 0.38, 0.54, 0.34, 0.60, 0.28,
0.38, 1.00, 0.34, 0.68, 0.28, 0.68,
0.54, 0.34, 1.00, 0.47, 0.66, 0.39,
0.34, 0.68, 0.47, 1.00, 0.38, 0.72,
0.60, 0.28, 0.66, 0.38, 1.00, 0.38,
0.28, 0.68, 0.39, 0.72, 0.38, 1.00), nrow=6, ncol=6)
delta_t313 <- c(1.5, 1.5)
sampleSize313 <- 335
moderator313 <- c(0.8, 2.47)
source313 <- c("Demerouti", "Bakker", "& Bulters", "2004")
addedByResearcher313 <- "check correlation matrix"
# Add Labels and Values for Moderators (just for optional excel tables)
moderatorLabels <- c("Control", "Social Support")
moderatorValues <- list("continuous", c("1 = very low", "2 = low",
"3 = medium", "4 = high", "5 = very high"))
CoTiMAstudyList_3 <- ctmaPrep(selectedStudies = c(2, 3, 313),
activeDirectory="/user/",
excludedElements = "ageM",
addElements = "addedByResearcher",
moderatorLabels=moderatorLabels,
moderatorValues=moderatorValues)
Run the code above in your browser using DataLab