ShortExperimentNames <- c("E1", "E2", "E3", "E4")
FullExperimentNames <- c("EUBAS", "R1UCLM", "R2UCLM", "R3UCLM")
Metrics <- c("Comprehension", "Modification")
Groups <- c("A", "B", "C", "D")
Type <- c(rep("4G", 4))
StudyID <- "S2"
Control <- "SC"
# Obtain experimental data from each file and put in wide format
ReshapedData <- ExtractExperimentData(
KitchenhamEtAl.CorrelationsAmongParticipants.Scanniello14TOSEM,
ExperimentNames = FullExperimentNames, idvar = "ParticipantID",
timevar = "Period", ConvertToWide = TRUE
)
Lev1Data <- ConstructLevel1ExperimentRData(
ReshapedData, StudyID, ShortExperimentNames, Groups,
Metrics, Type, Control
)
CalculateLevel2ExperimentRData(Lev1Data,
Groups = Groups, StudyID = StudyID,
ExperimentNames = ShortExperimentNames, Metrics = Metrics, Type = Type
)
# A tibble: 8 x 10
# StudyID ExpID N Metric PooledVar1 PooledVar2 VarProp PooledVar PooledDiffVar r.Exp
#
# 1 S2 S2E1 24 Comprehension 0.0148 0.0212 0.412 0.0180 0.0248 0.311
# 3 S2 S2E2 22 Comprehension 0.0487 0.0224 0.684 0.0356 0.0534 0.250
# 4 S2 S2E2 22 Modification 0.0445 0.0266 0.626 0.0356 0.0628 0.117
# 5 S2 S2E3 22 Comprehension 0.0353 0.0402 0.467 0.0377 0.105 -0.391
# 6 S2 S2E3 22 Modification 0.0433 0.0414 0.511 0.0424 0.0997 -0.176
# 7 S2 S2E4 18 Comprehension 0.0439 0.0237 0.649 0.0338 0.0355 0.475
# 8 S2 S2E4 18 Modification 0.0322 0.0592 0.353 0.0457 0.0894 0.0222
Run the code above in your browser using DataLab