knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
MAIVE (Meta-Analysis Instrumental Variable Estimator) addresses a fundamental problem in meta-analysis of observational research: spurious precision. Traditional meta-analysis assigns more weight to studies with lower standard errors, assuming higher precision. However, in observational research, precision must be estimated and is vulnerable to manipulation through practices like p-hacking to achieve statistical significance.
For a guided, interactive workflow, visit https://www.easymeta.org.
This manipulation can invalidate:
MAIVE introduces an instrumental variable approach to limit bias caused by spurious precision in meta-analysis.
In observational research, researchers can inadvertently or deliberately manipulate their analyses to achieve statistically significant results. This includes:
These practices create spuriously precise estimates that appear more reliable than they actually are. Traditional meta-analysis methods that weight by inverse variance will overweight these manipulated studies, leading to biased conclusions.
MAIVE uses instrumental variables to correct for spurious precision:
This approach provides:
# Install from CRAN (once published) install.packages("MAIVE") # Or install development version from GitHub install.packages("devtools") devtools::install_github("meta-analysis-es/maive")
library(MAIVE)
The maive() function accepts either the default column names or custom mappings:
| Column | Default name | Description |
|---------------------|--------------|---------------------------------------|
| Estimate | bs | Primary estimates (effect sizes) |
| Std. Error | sebs | Standard errors (must be > 0) |
| Sample size | Ns | Sample sizes (must be > 0) |
| Study ID (optional) | study_id | Clustering/fixed effects identifier |
Custom column names: You can map your own column names using:
estimate for the estimate columnse for the standard error columnn for the sample size columnstudy_id for study identifiers (optional)Example:
custom_dat <- data.frame( my_est = c(0.5, 0.6, 0.4, 0.55), my_se = c(0.2, 0.18, 0.25, 0.22), my_n = c(80, 120, 95, 110), my_study = c("A", "A", "B", "C") ) result <- maive( dat = custom_dat, estimate = "my_est", se = "my_se", n = "my_n", study_id = "my_study", method = 3, weight = 0, instrument = 1, studylevel = 2, SE = 3, AR = 1 )
Validation rules still apply: required columns must be numeric, non-missing, finite, and there must be at least 4 observations after removing completely empty rows.
Let's create a simple example dataset:
# Simulated meta-analysis data set.seed(123) n_studies <- 50 data <- data.frame( bs = rnorm(n_studies, mean = 0.3, sd = 0.2), sebs = runif(n_studies, min = 0.05, max = 0.3), Ns = sample(100:1000, n_studies, replace = TRUE), study_id = rep(1:10, each = 5) ) head(data)
The default MAIVE estimator uses PET-PEESE with instrumented standard errors, no weights, cluster-robust standard errors, and wild bootstrap:
# Run MAIVE with defaults result <- maive( dat = data, method = 3, # PET-PEESE (default) weight = 0, # No weights (default) instrument = 1, # Instrument SEs (default) studylevel = 2, # Cluster-robust (default) SE = 3, # Wild bootstrap (default) AR = 1 # Anderson-Rubin CI (default) ) # View key results cat("MAIVE Estimate:", round(result$Estimate, 3), "\n") cat("MAIVE SE:", round(result$SE, 3), "\n") cat("Standard Estimate:", round(result$StdEstimate, 3), "\n") cat("Hausman Test:", round(result$Hausman, 3), "\n") cat("First-stage F-test:", round(result$`F-test`, 3), "\n")
The maive() function returns a list with the following key elements:
Estimate: MAIVE point estimate (corrected for spurious precision)SE: MAIVE standard errorStdEstimate: Standard (non-IV) estimate for comparisonHausman: Hausman-type test comparing IV vs OLS estimates (high value suggests spurious precision)F-test: First-stage F-test of instrument strengthAR_CI: Anderson-Rubin confidence interval (robust to weak instruments)pbias_pval: p-value for publication bias testSE_instrumented: Vector of instrumented standard errorsMAIVE supports multiple meta-regression methods:
result_pet <- maive( dat = data, method = 1, # FAT-PET weight = 0, instrument = 1, studylevel = 2, SE = 3, AR = 1 ) cat("PET Estimate:", round(result_pet$Estimate, 3), "\n")
result_peese <- maive( dat = data, method = 2, # PEESE weight = 0, instrument = 1, studylevel = 2, SE = 3, AR = 1 ) cat("PEESE Estimate:", round(result_peese$Estimate, 3), "\n")
PET-PEESE uses PET if the PET estimate is not significantly different from zero, otherwise uses PEESE:
result_petpeese <- maive( dat = data, method = 3, # PET-PEESE (default) weight = 0, instrument = 1, studylevel = 2, SE = 3, AR = 1 ) cat("PET-PEESE Estimate:", round(result_petpeese$Estimate, 3), "\n")
result_ek <- maive( dat = data, method = 4, # EK weight = 0, instrument = 1, studylevel = 2, SE = 3, AR = 0 # AR not available for EK ) cat("EK Estimate:", round(result_ek$Estimate, 3), "\n")
Unweighted regression, recommended when spurious precision is a concern:
result_noweight <- maive( dat = data, method = 3, weight = 0, # No weights instrument = 1, studylevel = 2, SE = 3, AR = 1 )
Traditional meta-analysis weighting:
result_ivweight <- maive( dat = data, method = 3, weight = 1, # Inverse-variance weights instrument = 1, studylevel = 2, SE = 3, AR = 0 # AR not available with weights )
Uses instrumented standard errors for weighting:
result_maiveweight <- maive( dat = data, method = 3, weight = 2, # MAIVE-adjusted weights instrument = 1, studylevel = 2, SE = 3, AR = 1 )
Control for study-level correlation when you have multiple estimates per study:
# No study-level adjustment result_none <- maive(data, method = 3, weight = 0, instrument = 1, studylevel = 0, SE = 0, AR = 1) # Study fixed effects (demeaned) result_fe <- maive(data, method = 3, weight = 0, instrument = 1, studylevel = 1, SE = 1, AR = 0) # AR not available with FE # Cluster-robust standard errors result_cluster <- maive(data, method = 3, weight = 0, instrument = 1, studylevel = 2, SE = 3, AR = 1) # Both fixed effects and clustering result_both <- maive(data, method = 3, weight = 0, instrument = 1, studylevel = 3, SE = 3, AR = 0)
# CR0 (Huber-White) result_cr0 <- maive(data, method = 3, weight = 0, instrument = 1, studylevel = 2, SE = 0, AR = 1) # CR1 (Standard empirical correction) result_cr1 <- maive(data, method = 3, weight = 0, instrument = 1, studylevel = 2, SE = 1, AR = 1) # CR2 (Bias-reduced estimator) result_cr2 <- maive(data, method = 3, weight = 0, instrument = 1, studylevel = 2, SE = 2, AR = 1) # Wild bootstrap (recommended, default) result_boot <- maive(data, method = 3, weight = 0, instrument = 1, studylevel = 2, SE = 3, AR = 1)
MAIVE allows two functional forms for the first-stage regression:
Regresses variance (sebs²) on constant and 1/Ns:
result_levels <- maive(data, method = 3, weight = 0, instrument = 1, studylevel = 2, SE = 3, AR = 1, first_stage = 0) cat("First-stage (levels) F-test:", round(result_levels$`F-test`, 3), "\n")
Log-linear regression with smearing retransformation:
result_log <- maive(data, method = 3, weight = 0, instrument = 1, studylevel = 2, SE = 3, AR = 1, first_stage = 1) cat("First-stage (log) F-test:", round(result_log$`F-test`, 3), "\n")
WAIVE (Weighted And Instrumented Variable Estimator) provides a more aggressive correction for p-hacking and spurious precision by combining variance instrumentation with exponential-decay downweighting of studies with spurious precision or extreme outliers:
For technical details and methodology, see the WAIVE slides.
result_waive <- waive( dat = data, method = 3, instrument = 1, studylevel = 2, SE = 3, AR = 1 ) cat("WAIVE Estimate:", round(result_waive$Estimate, 3), "\n") cat("WAIVE SE:", round(result_waive$SE, 3), "\n")
WAIVE is particularly useful when:
The Hausman test compares the MAIVE (IV) estimate with the standard (OLS) estimate:
Tests the strength of the instrument (inverse sample size):
Provides inference robust to weak instruments. Always check this CI when F-test is low.
Tests for publication bias using instrumented FAT:
Irsova, Z., Bom, P.R.D., Havranek, T., & Rachinger, H. (2025). Spurious precision in meta-analysis of observational research. Nature Communications, 16, 8454. https://doi.org/10.1038/s41467-025-63261-0
Keane, M., & Neal, T. (2023). Instrument strength in IV estimation and inference: A guide to theory and practice. Journal of Econometrics, 235(2), 1625-1653.
?maive for detailed parameter documentation?waive for the robust WAIVE estimatorAny scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.