CatchError | R Documentation |
This is a helper function to stop simulations failing if the metafor function rma fails for example cannot converge properly for a specific dataset.
CatchError(expr)
expr |
The expression that is being monitored |
A message confirming whether the expression has performed successfully
Barbara Kitchenham and Lech Madeyski
ES=c(0.2,0.3)
ESvar=c(0.04,0.03)
outcome=reproducer:::CatchError(metafor::rma(ES,ESvar,method='Meth'))
outcome
# [1] 'Failure'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.