View source: R/method-trimfill.R
| method.trimfill | R Documentation |
Implements the trim-and-fill method for adjusting publication bias in meta-analysis using the metafor package.
## S3 method for class 'trimfill'
method(method_name, data, settings)
method_name |
Method name (automatically passed) |
data |
Data frame with yi (effect sizes) and sei (standard errors) |
settings |
List of method settings (see Details.) |
The following settings are implemented
"default"Random effects model fitted with Restricted Maximum
Likelihood estimator (method = "REML") with Knapp-Hartung
adjustment (test = "knha"), followed by trim-and-fill using
left-side trimming (side = "left") and L0 estimator
(estimator = "L0").
Data frame with trim-and-fill results
František Bartoš f.bartos96@gmail.com
# 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 trimfill method
result <- run_method("trimfill", data)
print(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.