[R-meta] Exclude answer category from moderation test
||@t@ @end|ng |rom dewey@myzen@co@uk
Fri Jun 24 16:50:06 CEST 2022
Do you want to test on a restricted subset of the data (as Wolfgang has
shown you) or do you want to test if the coefficient of Y is equal to
that of Z? In the latter case I think you are looking to use anova.rma()
after your initial fit.
On 24/06/2022 14:28, Viechtbauer, Wolfgang (NP) wrote:
> 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").
>> -----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!
>> Maria Wiertsema
>> PhD student | University of Groningen | Youth Studies | Grote
>> Rozenstraat 38 | email: m.wiertsema using rug.nl | phone: 050 - 363 3182
> R-sig-meta-analysis mailing list @ R-sig-meta-analysis using r-project.org
> To manage your subscription to this mailing list, go to:
More information about the R-sig-meta-analysis