Dear all,
I am a master student trying to get to work with Rstudio for my masterthesis, I am desperately in need of help.
I try to run a meta-analysis, I have al the codes I need, but something goes wrong with the input of my data, I think.
Running my data works:
a<-"/Users/brecht/Desktop/Mindfulness.csv"
b<-read.csv(a,sep=",")
But when I look in the environment en click on b: It seems all my data is mixed, all the numbers appear in two coloms, while it should be 4: Study ID, Study, N, r.
So when I run the code for RAMDOM EFFECTS (to do my meta-analysis) I get the following error;
dat <- escalc(measure="ZCOR",ri=r, ni=N, data=b, slab=paste(StudyID, Study, sep=","))
Error in paste(StudyID, Study, sep = ",") : object 'StudyID' not found
res <- rma (yi,vi,data=dat)
Error in rma(yi, vi, data = dat) : object 'dat' not found
res
Error: object 'res' not found
I really hope somebody can help me!
Thank you very much!
Kind regards,
Brecht