Learn R Programming

PublicationBiasBenchmark (version 0.1.3)

method.mean: Mean Method

Description

Implements the unweighted mean method. I.e., the mean of observed effect sizes.

Usage

# S3 method for mean
method(method_name, data, settings)

Value

Data frame with mean results

Arguments

method_name

Method name (automatically passed)

data

Data frame with yi (effect sizes)

settings

List of method settings (see Details)

Details

The following settings are implemented

"default"

No settings

References

Examples

Run this code
# Generate some example data
data <- data.frame(
  yi = c(0.2, 0.3, 0.1, 0.4, 0.25),
  sei = c(0.1, 0.15, 0.08, 0.12, 0.09)
)

# Apply mean method
result <- run_method("mean", data)
print(result)

Run the code above in your browser using DataLab