group_is_valid: Validate 'group'

View source: R/mod_results.R

group_is_validR Documentation

Validate 'group'

Description

Checks if grouping variable is valid within the model's dataset. Ensures that the 'group' argument is provided, exists as a column in the model's data, and is not a numeric continuous variable.

Usage

group_is_valid(model, group)

Arguments

model

A meta-analytic model from the metafor package.

group

A character string specifying the name of the grouping variable within the model's dataset.

Value

Logical 'TRUE' if the group variable is valid. Otherwise, the function throws an error.

See Also

mod_results


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