-----Original Message-----
From: R-sig-meta-analysis <r-sig-meta-analysis-bounces at r-project.org> On Behalf
Of Dr. Guido Schwarzer via R-sig-meta-analysis
Sent: Wednesday, March 6, 2024 12:41
To: R Special Interest Group for Meta-Analysis <r-sig-meta-analysis at r-
project.org>
Cc: Dr. Guido Schwarzer <guido.schwarzer at uniklinik-freiburg.de>
Subject: Re: [R-meta] Error with rma.uni in a Monte Carlo simulation
To elaborate a bit on using try(). The following code uses the DerSimonian-Laird
estimator if the REML estimation fails.
m <- try(rma.uni(...))
if (inherits(m, "try-error"))
m <- try(rma.uni(..., method = "DL"))
Best,
Guido