[R-meta] Exclude answer category from moderation test

Wiertsema, M. m@w|ert@em@ @end|ng |rom rug@n|
Fri Jun 24 16:31:01 CEST 2022


Great, thank you so much!

Op vr 24 jun. 2022 om 15:28 schreef Viechtbauer, Wolfgang (NP)
<wolfgang.viechtbauer using maastrichtuniversity.nl>:
>
> Dear Maria,
>
> If you want to exclude the studies where the moderator is equal to 'x' from the analysis, then you could use the 'subset' argument (e.g., subset=moderator!="x").
>
> Best,
> Wolfgang
>
> >-----Original Message-----
> >From: R-sig-meta-analysis [mailto:r-sig-meta-analysis-bounces using r-project.org] On
> >Behalf Of Wiertsema, M.
> >Sent: Friday, 24 June, 2022 14:21
> >To: r-sig-meta-analysis using r-project.org
> >Subject: [R-meta] Exclude answer category from moderation test
> >
> >Hi everyone,
> >
> >Perhaps a silly question, but I cannot seem to find the answer I need.
> >So here's my question: I have a certain variable with three answer
> >categories (x, y, and z). Now, I want to perform a moderation test
> >based on this variable but I only want to compare Y and Z in this
> >moderation test. Is there a way to exclude answer option 'x' in the
> >moderator analysis via code?
> >I know I can also adjust my data set and create a new variable with
> >only the options 'y' and 'z', but I was wondering if it could be
> >easier with the metafor package.
> >
> >I hope anyone knows this!
> >Many thanks in advance!
> >
> >Best,
> >Maria Wiertsema
> >
> >--
> >PhD student | University of Groningen | Youth Studies | Grote
> >Rozenstraat 38 | email: m.wiertsema using rug.nl | phone: 050 - 363 3182



-- 
PhD student | University of Groningen | Youth Studies | Grote
Rozenstraat 38 | email: m.wiertsema using rug.nl | phone: 050 - 363 3182



More information about the R-sig-meta-analysis mailing list