Skip to content
Fourohtwo

agents.writerslogic.com/api/v1/prove-causality

Referees a causal claim against an observational table (JSON rows, CSV text, or a published contingency table with counts) and leads with a verdict, confidence, whether the claim holds, the crude and adjusted effects with bootstrap intervals, and a concrete next step. Underneath: crude and stratified effects, Mantel-Haenszel pooling, Simpson's-paradox detection, d-separation and backdoor/front-doo

BaseAnswering
POSThttps://agents.writerslogic.com/api/v1/prove-causality

Uptime100% of 3 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agents.writerslogic.com/api/v1/prove-causality", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"dag":{"edges":[{"to":"treatment","from":"stone_size"},{"to":"success","from":"stone_size"},{"to":"success","from":"treatment"}]},"data":[{"n":81,"success":1,"treatment":"A","stone_size":"small"},{"n":6,"success":0,"treatment":"A","stone_size":"small"},{"n":192,"success":1,"treatment":"A","stone_size":"large"},{"n":71,"success":0,"treatment":"A","stone_size":"large"},{"n":234,"success":1,"treatme),
});
console.log(await res.json());

Example input

{"dag":{"edges":[{"to":"treatment","from":"stone_size"},{"to":"success","from":"stone_size"},{"to":"success","from":"treatment"}]},"data":[{"n":81,"success":1,"treatment":"A","stone_size":"small"},{"n":6,"success":0,"treatment":"A","stone_size":"small"},{"n":192,"success":1,"treatment":"A","stone_size":"large"},{"n":71,"success":0,"treatment":"A","stone_size":"large"},{"n":234,"success":1,"treatme