model_is_valid: Validate 'model'

View source: R/mod_results.R

model_is_validR Documentation

Validate 'model'

Description

Checks if 'model' is a valid metafor model object. The model must be one of the following classes: 'robust.rma', 'rma.mv', 'rma', or 'rma.uni'.

Usage

model_is_valid(model)

Arguments

model

An object representing a fitted metafor model. It should be of class 'robust.rma', 'rma.mv', 'rma', or 'rma.uni'.

Value

Logical 'TRUE' if the 'model' argument is valid. If the model is missing or not of an accepted class, the function stops with an error message.


daniel1noble/orchaRd documentation built on Feb. 23, 2025, 9:17 a.m.