Message-ID: <052B4EEB-54AD-4B3D-9049-5CE76683F468@uniklinik-freiburg.de>
Date: 2024-03-06T11:41:25Z
From: Guido Schwarzer
Subject: [R-meta] Error with rma.uni in a Monte Carlo simulation
In-Reply-To: <385f45c6-b5f0-81ba-ff4d-a536661e1557@dewey.myzen.co.uk>
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