Error unexpected '='

Hi everyone:

I am doing a reliability generalization meta-analysis and when I try to do a moderation analysis I get this error:
Error: unexpected '=' in "mues<-rma(measure="ABT", ai=Alfa, mi=Items, ni=n, mods = ~ Muestra, random = ~ 1 | data="

The code I am using is:
var<-rma(measure="ABT", ai=Alfa, mi=Items, ni=n, mods = ~ Muestra, random = ~ 1 | data=base_1)

I am using the same code with different variables and it only happens with two of them.

any idea what i'm doing wrong?

Thanks!

You have this

var<-rma(measure="ABT", ai=Alfa, mi=Items, ni=n, mods = ~ Muestra, random = ~ 1 | data=base_1)

I think you want this. Note the comma after random instead of a pipe.

var<-rma(measure="ABT", ai=Alfa, mi=Items, ni=n, mods = ~ Muestra, random = ~ 1 , data=base_1)
1 Like

Yes, it works! I do not understand why in the other moderators the error did not appear.

Thank you so much!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.