[R-meta] extract pval from robust function

Viechtbauer, Wolfgang (SP) wo||g@ng@v|echtb@uer @end|ng |rom m@@@tr|chtun|ver@|ty@n|
Thu Mar 24 13:16:35 CET 2022


Hi Roger,

robust(res, cluster=dat$district)$pval[2]

Use str() to find out about the structure of an object, so:

str(robust(res, cluster=dat$district))

Scanning through all that stuff will often lead to the answer.

Best,
Wolfgang

>-----Original Message-----
>From: R-sig-meta-analysis [mailto:r-sig-meta-analysis-bounces using r-project.org] On
>Behalf Of Martineau, Roger
>Sent: Thursday, 24 March, 2022 12:58
>To: r-sig-meta-analysis using r-project.org
>Subject: [R-meta] extract pval from robust function
>
>Dear list members,
>
>In this example, the p-value of year in the robust function is 0.5885; what are
>the codes to extract that p-value ?
>
>dat <- dat.konstantopoulos2011
>res <- rma.mv(yi ~ year, vi, random = ~ 1 | district/school, data=dat)
>robust(res, cluster=dat$district)
>
>Thanks in advance.
>
>Roger :)



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