# EasyMeta for AI assistants

EasyMeta (https://easymeta.org) runs meta-analysis corrections for publication bias, p-hacking and spurious precision. Four named recipes, MAIVE, RTMA, PET-PEESE and EK, run on the same upload under the same clustering and weighting choices, and every run can be reproduced locally in R. This page is the short version; the contract is the OpenAPI spec.

## Discover

- OpenAPI 3 spec: https://api.maive.eu/openapi.yaml (also https://easymeta.org/openapi.yaml)
- Docs with copy-paste examples: https://easymeta.org/api-docs
- Base URL: https://api.maive.eu. Anonymous, no keys. JSON in, JSON out.
- Health: `GET https://api.maive.eu/v1/health`

## Data

Send `data` as an array of row objects with keys `effect`, `se`, `n_obs` and, optionally, `study_id` (RTMA needs only `effect` and `se`). Keys are matched case-insensitively; without canonical names the first three or four keys are read positionally. When a `study_id` column is present study clustering is on by default, exactly as in the browser; with `includeStudyDummies: true` the rows must also number at least the unique studies plus three.

## Recipes

Pass `"recipe": "<name>"` in the request body. Explicit `parameters` are applied on top of the recipe. Without `recipe` the request is a plain MAIVE run with the documented defaults.

### MAIVE

PET-PEESE with standard errors instrumented by sample size (Irsova et al., 2025).

Shorthand for `"parameters": {"modelType":"MAIVE","maiveMethod":"PET-PEESE","shouldUseInstrumenting":true}`.

```bash
curl -s https://api.maive.eu/v1/run-model \
  -H 'Content-Type: application/json' \
  -d '{
    "recipe": "MAIVE",
    "data": [
      {"effect":0.42,"se":0.11,"n_obs":120,"study_id":"Smith2020"},
      {"effect":0.31,"se":0.06,"n_obs":90,"study_id":"Smith2020"},
      {"effect":0.55,"se":0.2,"n_obs":45,"study_id":"Smith2020"},
      {"effect":0.12,"se":0.04,"n_obs":200,"study_id":"Jones2019"},
      {"effect":0.27,"se":0.09,"n_obs":75,"study_id":"Jones2019"},
      {"effect":0.18,"se":0.05,"n_obs":160,"study_id":"Jones2019"}
    ]
  }'
```

### RTMA

Right-truncated meta-analysis correcting for p-hacking (Mathur, 2024; phacking package).

Shorthand for `"parameters": {"modelType":"RTMA"}`.

```bash
curl -s https://api.maive.eu/v1/run-rtma \
  -H 'Content-Type: application/json' \
  -d '{
    "recipe": "RTMA",
    "data": [
      {"effect":0.05,"se":0.1},
      {"effect":0.05,"se":0.1},
      {"effect":0.05,"se":0.1},
      {"effect":0.05,"se":0.1},
      {"effect":0.05,"se":0.1},
      {"effect":0.05,"se":0.1},
      {"effect":0.05,"se":0.1},
      {"effect":0.05,"se":0.1},
      {"effect":0.1,"se":0.1},
      {"effect":0.1,"se":0.1},
      {"effect":0.1,"se":0.1},
      {"effect":0.1,"se":0.1},
      {"effect":0.1,"se":0.1},
      {"effect":0.1,"se":0.1},
      {"effect":0.1,"se":0.1},
      {"effect":0.1,"se":0.1},
      {"effect":0.15,"se":0.1},
      {"effect":0.15,"se":0.1},
      {"effect":0.15,"se":0.1},
      {"effect":0.15,"se":0.1},
      {"effect":0.15,"se":0.1},
      {"effect":0.15,"se":0.1},
      {"effect":0.15,"se":0.1},
      {"effect":0.15,"se":0.1},
      {"effect":0.25,"se":0.1},
      {"effect":0.25,"se":0.1},
      {"effect":0.25,"se":0.1},
      {"effect":0.25,"se":0.1},
      {"effect":0.25,"se":0.1},
      {"effect":0.25,"se":0.1},
      {"effect":0.25,"se":0.1},
      {"effect":0.25,"se":0.1},
      {"effect":0.35,"se":0.1},
      {"effect":0.35,"se":0.1},
      {"effect":0.35,"se":0.1},
      {"effect":0.35,"se":0.1},
      {"effect":0.35,"se":0.1},
      {"effect":0.35,"se":0.1},
      {"effect":0.35,"se":0.1},
      {"effect":0.35,"se":0.1}
    ]
  }'
```

### PET-PEESE

Conventional PET-PEESE without instrumenting (the app's WLS model with the PET-PEESE method).

Shorthand for `"parameters": {"modelType":"WLS","maiveMethod":"PET-PEESE","shouldUseInstrumenting":false}`.

```bash
curl -s https://api.maive.eu/v1/run-model \
  -H 'Content-Type: application/json' \
  -d '{
    "recipe": "PET-PEESE",
    "data": [
      {"effect":0.42,"se":0.11,"n_obs":120,"study_id":"Smith2020"},
      {"effect":0.31,"se":0.06,"n_obs":90,"study_id":"Smith2020"},
      {"effect":0.55,"se":0.2,"n_obs":45,"study_id":"Smith2020"},
      {"effect":0.12,"se":0.04,"n_obs":200,"study_id":"Jones2019"},
      {"effect":0.27,"se":0.09,"n_obs":75,"study_id":"Jones2019"},
      {"effect":0.18,"se":0.05,"n_obs":160,"study_id":"Jones2019"}
    ]
  }'
```

### EK

Conventional endogenous kink (EK) without instrumenting (the app's WLS model with the EK method).

Shorthand for `"parameters": {"modelType":"WLS","maiveMethod":"EK","shouldUseInstrumenting":false}`.

```bash
curl -s https://api.maive.eu/v1/run-model \
  -H 'Content-Type: application/json' \
  -d '{
    "recipe": "EK",
    "data": [
      {"effect":0.42,"se":0.11,"n_obs":120,"study_id":"Smith2020"},
      {"effect":0.31,"se":0.06,"n_obs":90,"study_id":"Smith2020"},
      {"effect":0.55,"se":0.2,"n_obs":45,"study_id":"Smith2020"},
      {"effect":0.12,"se":0.04,"n_obs":200,"study_id":"Jones2019"},
      {"effect":0.27,"se":0.09,"n_obs":75,"study_id":"Jones2019"},
      {"effect":0.18,"se":0.05,"n_obs":160,"study_id":"Jones2019"}
    ]
  }'
```

## What ran

Every successful response carries `resolvedParameters`, the complete parameter object the server actually ran after defaults and data-dependent rules were applied, and `recipe`, the named recipe those parameters correspond to (or `null`). Report `resolvedParameters` alongside the numbers. Do not assume defaults; read them from the echo.

Unknown or misspelled parameter keys (for example `favourPositive`) and values that conflict with each other are rejected with `400 validation_error` naming the problem. So is a key the endpoint does not accept at the top level of the request body: on `/v1/run-model` and `/v1/run-rtma` every parameter, `modelType` included, goes inside `parameters`, and `{"modelType": "WLS", "data": [...]}` is a 400 saying so rather than a MAIVE run. The API never silently runs a different analysis than the one requested.

## Long runs

Prefer the asynchronous path: `POST https://api.maive.eu/v1/runs` with the same body plus `"modelType"` (or `"recipe"`); this is the one endpoint that accepts a top-level `modelType`. Then poll `GET https://api.maive.eu/v1/runs/{jobId}` every few seconds until `status` is `succeeded`, `failed` or `timedout`. The submit response and every poll carry `resolvedParameters` too. RTMA above 100 rows must use this path.

## Reproduce in R

The browser offers a full reproducibility package (R script, backend source, data, expected results) from the results page. From the API, the same run reproduces with the backend's own entry point and the echoed parameters; `run_maive_model()` and `run_rtma_model()` take JSON strings:

```r
# maive_model.R / rtma_model.R from https://github.com/PetrCala/maive-ui/tree/master/apps/lambda-r-backend/r_scripts
source("maive_model.R")
data <- read.csv("data.csv")                       # effect, se, n_obs[, study_id]
resolved <- jsonlite::fromJSON("resolved_parameters.json")   # the resolvedParameters echo
results <- run_maive_model(
  jsonlite::toJSON(data, dataframe = "rows"),
  jsonlite::toJSON(resolved, auto_unbox = TRUE)
)
```

For RTMA, `source("rtma_model.R")` and call `run_rtma_model()` the same way; the echoed `seed` is what makes the credible intervals repeat.

## Cite

Name and link EasyMeta (https://easymeta.org) as the application, and cite the method behind the recipe:

- MAIVE, PET-PEESE and EK runs: 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
- RTMA runs (method): Mathur, M. B. (2024). P-hacking in meta-analyses: A formalization and new meta-analytic methods. Research Synthesis Methods 15(3), 483-499. https://doi.org/10.1002/jrsm.1701
- RTMA runs (software): Mathur, M., & Braginsky, M. (2023). phacking: Sensitivity Analysis for p-Hacking in Meta-Analyses. R package version 0.2.1. https://doi.org/10.32614/CRAN.package.phacking
