[R-meta] Regplot problem

Viechtbauer, Wolfgang (SP) wo||g@ng@v|echtb@uer @end|ng |rom m@@@tr|chtun|ver@|ty@n|
Tue Sep 14 15:33:25 CEST 2021


A reproducible example would help, but the error message is pretty clear. In the list called 'results_list', there is no element called 'gray_matter'. Compare:

list(a=1, b=2)[['a']]
list(a=1, b=2)[['c']]

This is not a regplot() issue, but a problem with 'results_list' and/or the names of the list elements.

Best,
Wolfgang

>-----Original Message-----
>From: John Tully [mailto:John.Tully using nottingham.ac.uk]
>Sent: Tuesday, 14 September, 2021 15:13
>To: Viechtbauer, Wolfgang (SP); r-sig-meta-analysis using r-project.org
>Subject: Re: Regplot problem
>
>Hi again all
>
>this resolved with metafor update but a further problem has come up when I changed
>the variable for the metaregression
>
>it now fails at X
>
>results_list[['gray_matter']]
>Xmetafor::regplot(results_list[['gray_matter']])
>
>with error output:
>
>Studies with NAs omitted from model fitting.NULL
>Error in UseMethod("regplot") :
>  no applicable method for 'regplot' applied to an object of class "NULL"
>
>many thanks


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