[R-meta] Error with rma.uni in a Monte Carlo simulation

Dr. Guido Schwarzer gu|do@@chw@rzer @end|ng |rom un|k||n|k-|re|burg@de
Wed Mar 6 12:41:25 CET 2024


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



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