Hello everyone,
I have a problem with calculating pre-post effect sizes via metafors escalc function. Here is my reprex:
within<-data.frame(
nBL_T = c(16, 16, 22, 15, 38, 38, 28, 207, 26, 15),
mBL_T = c(3.8, 3.3, 117.90, 16.07, 34.3, 60.65, 25.00, 73.26, 13.2, 35.47),
mEoT_T = c(2.1, 2.3, 74.33, 10.63, 20.32, 56.1, 14.29, 46.70, 5.1, 23),
sdBL_T = c(0.9, 1.1, 29.89, 7.46, 5.34, 6.69, 4.18, 22.18, 4.0, 8.56),
sdEoT_T = c(1.5, 1.3, 44.02, 8.12, 9.99, 9.02, 6.43, 36.84, 4.0, 10.39)
)
es_within <- escalc(measure= "SMCC", m1i= mBL_T, m2i= mEoT_T, sd1i= sdBL_T, sd2i= sdEoT_T, ri= 0.5, ni= nBL_T, data=within)
Everytime I run the code I get the Error "Supplied data vectors are not all of the same length" although I could not spot any differences in length. What am I doing wrong?
Thanks in advance!