Paid A/B Testing & Experimentation Statistics API via x402. Unpaid tool calls return 402.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Two-arm A/B scorecard for conversion (two-proportion z) or continuous (Welch t) metrics: absolute and relative lift, confidence intervals, p-value and significance. Pure computation on supplied aggregates. Price $0.02 USDC. POST /api/v1/experimentation/ab-test-frequentist. An unpaid call returns the x402 payment terms and does not run.
This tool isn't marked read-only, so it may change something on the server or in an account you connected.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http experimentation https://www.brainiac.software/mcp/experimentation
Two-arm A/B scorecard for conversion (two-proportion z) or continuous (Welch t) metrics: absolute and relative lift, confidence intervals, p-value and significance. Pure computation on supplied aggregates. Price $0.02 USDC. POST /api/v1/experimentation/ab-test-frequentist. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| alpha | number | |
| control* | any | |
| treatment* | any | |
| metricType* | string | |
| alternative | string |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"metricType",
"control",
"treatment"
],
"properties": {
"alpha": {
"type": "number",
"default": 0.05,
"exclusiveMaximum": 0.5,
"exclusiveMinimum": 0
},
"control": {
"anyOf": [
{
"type": "object",
"required": [
"users",
"conversions"
],
"properties": {
"users": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1
},
"conversions": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
}
},
{
"type": "object",
"required": [
"n",
"mean",
"sd"
],
"properties": {
"n": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 2
},
"sd": {
"type": "number",
"minimum": 0
},
"mean": {
"type": "number"
}
}
}
]
},
"treatment": {
"anyOf": [
{
"type": "object",
"required": [
"users",
"conversions"
],
"properties": {
"users": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1
},
"conversions": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
}
},
{
"type": "object",
"required": [
"n",
"mean",
"sd"
],
"properties": {
"n": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 2
},
"sd": {
"type": "number",
"minimum": 0
},
"mean": {
"type": "number"
}
}
}
]
},
"metricType": {
"enum": [
"proportion",
"mean"
],
"type": "string"
},
"alternative": {
"enum": [
"two-sided",
"greater",
"less"
],
"type": "string",
"default": "two-sided"
}
}
}Next-period traffic weights from arm outcomes: Thompson-sampling probabilities by deterministic quadrature, or UCB1 indices, with an exploration floor. Price $0.03 USDC. POST /api/v1/experimentation/bandit-allocate. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| arms* | array | |
| prior | object | |
| policy* | string | |
| minShare | number |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"policy",
"arms"
],
"properties": {
"arms": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"successes",
"failures"
],
"properties": {
"name": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"failures": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"successes": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
}
},
"maxItems": 20,
"minItems": 2
},
"prior": {
"type": "object",
"default": {
"beta": 1,
"alpha": 1
},
"properties": {
"beta": {
"type": "number",
"default": 1,
"exclusiveMinimum": 0
},
"alpha": {
"type": "number",
"default": 1,
"exclusiveMinimum": 0
}
}
},
"policy": {
"enum": [
"thompson",
"ucb1"
],
"type": "string"
},
"minShare": {
"type": "number",
"default": 0,
"maximum": 0.5,
"minimum": 0
}
}
}Posterior, probability to beat control, probability of being best, expected loss and equal-tailed credible intervals for 2-10 conversion arms. Deterministic: exact Miller sum or quadrature, no Monte Carlo. Price $0.03 USDC. POST /api/v1/experimentation/bayesian-ab. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| arms* | array | |
| prior | object | |
| credibleLevel | number |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"arms"
],
"properties": {
"arms": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"users",
"conversions"
],
"properties": {
"name": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"users": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"control": {
"type": "boolean"
},
"conversions": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
}
},
"maxItems": 10,
"minItems": 2
},
"prior": {
"type": "object",
"default": {
"beta": 1,
"alpha": 1
},
"properties": {
"beta": {
"type": "number",
"default": 1,
"exclusiveMinimum": 0
},
"alpha": {
"type": "number",
"default": 1,
"exclusiveMinimum": 0
}
}
},
"credibleLevel": {
"type": "number",
"default": 0.95,
"exclusiveMaximum": 0.999,
"exclusiveMinimum": 0.5
}
}
}Stateless SHA-256 bucketing of unit ids into an experiment with traffic gating, ordered group shares and an optional layer, documented so any SDK can reproduce it. Price $0.01 USDC. POST /api/v1/experimentation/bucket-assign. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| layer | any | |
| unitIds* | array | |
| experiment* | object |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"unitIds",
"experiment"
],
"properties": {
"layer": {
"anyOf": [
{
"type": "object",
"required": [
"salt",
"segments"
],
"properties": {
"salt": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"segments": {
"type": "array",
"items": {
"type": "object",
"required": [
"experiment",
"from",
"to"
],
"properties": {
"to": {
"type": "integer",
"maximum": 10000,
"minimum": 1
},
"from": {
"type": "integer",
"maximum": 9999,
"minimum": 0
},
"experiment": {
"type": "string",
"maxLength": 128,
"minLength": 1
}
}
},
"maxItems": 100,
"minItems": 1
}
}
},
{
"type": "null"
}
]
},
"unitIds": {
"type": "array",
"items": {
"type": "string",
"maxLength": 256,
"minLength": 1
},
"maxItems": 10000,
"minItems": 1
},
"experiment": {
"type": "object",
"required": [
"salt",
"groups"
],
"properties": {
"name": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"salt": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"groups": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"share"
],
"properties": {
"name": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"share": {
"type": "number",
"maximum": 1,
"exclusiveMinimum": 0
}
}
},
"maxItems": 20,
"minItems": 1
},
"trafficShare": {
"type": "number",
"default": 1,
"maximum": 1,
"exclusiveMinimum": 0
}
}
}
}
}CUPED adjustment with a pre-experiment covariate on unit-level data: theta, variance reduction, and Welch tests on raw and adjusted values. Price $0.03 USDC. POST /api/v1/experimentation/cuped-adjust. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| alpha | number | |
| units* | array |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"units"
],
"properties": {
"alpha": {
"type": "number",
"default": 0.05,
"exclusiveMaximum": 0.5,
"exclusiveMinimum": 0
},
"units": {
"type": "array",
"items": {
"type": "object",
"required": [
"group",
"y"
],
"properties": {
"x": {
"type": [
"number",
"null"
]
},
"y": {
"type": "number"
},
"group": {
"type": "string",
"maxLength": 64,
"minLength": 1
}
}
},
"maxItems": 200000,
"minItems": 4
}
}
}Confidence interval for a ratio metric whose analysis unit differs from the randomisation unit, plus the treatment-vs-control difference and relative lift. Accepts unit rows or aggregates. Price $0.03 USDC. POST /api/v1/experimentation/delta-method-ratio. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| arms* | array | |
| alpha | number |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"arms"
],
"properties": {
"arms": {
"type": "array",
"items": {
"type": "object",
"required": [
"name"
],
"properties": {
"n": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 2
},
"name": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"units": {
"type": "array",
"items": {
"type": "object",
"required": [
"num",
"den"
],
"properties": {
"den": {
"type": "number",
"minimum": 0
},
"num": {
"type": "number"
}
}
},
"maxItems": 1000000,
"minItems": 2
},
"sumDen": {
"type": "number",
"minimum": 0
},
"sumNum": {
"type": "number"
},
"control": {
"type": "boolean"
},
"sumDen2": {
"type": "number",
"minimum": 0
},
"sumNum2": {
"type": "number",
"minimum": 0
},
"sumNumDen": {
"type": "number"
}
}
},
"maxItems": 2,
"minItems": 1
},
"alpha": {
"type": "number",
"default": 0.05,
"exclusiveMaximum": 0.5,
"exclusiveMinimum": 0
}
}
}Evaluate ordered feature-flag rules (attribute operators, semver comparison, deterministic percentage rollout) for one user context and explain which rule matched. Price $0.01 USDC. POST /api/v1/experimentation/flag-rule-evaluate. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| flag* | object | |
| context* | object |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"flag",
"context"
],
"properties": {
"flag": {
"type": "object",
"required": [
"key",
"salt",
"default",
"rules"
],
"properties": {
"key": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"salt": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"rules": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"serve"
],
"properties": {
"id": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"serve": {
"type": [
"string",
"number",
"boolean"
]
},
"rollout": {
"type": "number",
"maximum": 1,
"minimum": 0
},
"conditions": {
"type": "array",
"items": {
"type": "object",
"required": [
"attribute",
"op"
],
"properties": {
"op": {
"enum": [
"eq",
"neq",
"in",
"not_in",
"contains",
"starts_with",
"ends_with",
"regex",
"gt",
"gte",
"lt",
"lte",
"semver_gt",
"semver_gte",
"semver_lt",
"semver_lte",
"exists"
],
"type": "string"
},
"value": {
"anyOf": [
{
"type": [
"string",
"number",
"boolean"
]
},
{
"type": "array",
"items": {
"type": [
"string",
"number"
]
},
"maxItems": 1000
}
]
},
"attribute": {
"type": "string",
"maxLength": 128,
"minLength": 1
}
}
},
"default": [],
"maxItems": 20
}
}
},
"maxItems": 100
},
"default": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"context": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"type": [
"string",
"number"
]
},
"maxItems": 1000
}
]
}
}
}
}One-sided non-inferiority tests of guardrail metrics against caller-supplied relative or absolute margins, with bounds and an overall pass flag. Price $0.02 USDC. POST /api/v1/experimentation/guardrail-check. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| alpha | number | |
| metrics* | array |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"metrics"
],
"properties": {
"alpha": {
"type": "number",
"default": 0.05,
"exclusiveMaximum": 0.5,
"exclusiveMinimum": 0
},
"metrics": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"type",
"marginType",
"margin",
"control",
"treatment"
],
"properties": {
"name": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"type": {
"enum": [
"mean",
"proportion"
],
"type": "string"
},
"margin": {
"type": "number",
"exclusiveMinimum": 0
},
"control": {
"anyOf": [
{
"type": "object",
"required": [
"users",
"conversions"
],
"properties": {
"users": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1
},
"conversions": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
}
},
{
"type": "object",
"required": [
"n",
"mean",
"sd"
],
"properties": {
"n": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 2
},
"sd": {
"type": "number",
"minimum": 0
},
"mean": {
"type": "number"
}
}
}
]
},
"treatment": {
"anyOf": [
{
"type": "object",
"required": [
"users",
"conversions"
],
"properties": {
"users": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1
},
"conversions": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
}
},
{
"type": "object",
"required": [
"n",
"mean",
"sd"
],
"properties": {
"n": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 2
},
"sd": {
"type": "number",
"minimum": 0
},
"mean": {
"type": "number"
}
}
}
]
},
"marginType": {
"enum": [
"relative",
"absolute"
],
"type": "string"
},
"higherIsBetter": {
"type": "boolean",
"default": true
}
}
},
"maxItems": 100,
"minItems": 1
}
}
}Exposed-versus-holdout impact with confidence interval and p-value, plus diluted population-level impact for partial exposure. Price $0.01 USDC. POST /api/v1/experimentation/holdout-impact. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| alpha | number | |
| exposed* | any | |
| holdout* | any | |
| metricType* | string | |
| exposureRate | number |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"metricType",
"holdout",
"exposed"
],
"properties": {
"alpha": {
"type": "number",
"default": 0.05,
"exclusiveMaximum": 0.5,
"exclusiveMinimum": 0
},
"exposed": {
"anyOf": [
{
"type": "object",
"required": [
"users",
"conversions"
],
"properties": {
"users": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1
},
"conversions": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
}
},
{
"type": "object",
"required": [
"n",
"mean",
"sd"
],
"properties": {
"n": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 2
},
"sd": {
"type": "number",
"minimum": 0
},
"mean": {
"type": "number"
}
}
}
]
},
"holdout": {
"anyOf": [
{
"type": "object",
"required": [
"users",
"conversions"
],
"properties": {
"users": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1
},
"conversions": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
}
},
{
"type": "object",
"required": [
"n",
"mean",
"sd"
],
"properties": {
"n": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 2
},
"sd": {
"type": "number",
"minimum": 0
},
"mean": {
"type": "number"
}
}
}
]
},
"metricType": {
"enum": [
"proportion",
"mean"
],
"type": "string"
},
"exposureRate": {
"type": "number",
"maximum": 1,
"exclusiveMinimum": 0
}
}
}Bonferroni, Holm and Benjamini-Hochberg adjusted p-values and reject decisions across metrics or arms, returned in input order. Price $0.01 USDC. POST /api/v1/experimentation/multiple-testing-correct. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| alpha | number | |
| methods | array | |
| pValues* | array |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"pValues"
],
"properties": {
"alpha": {
"type": "number",
"default": 0.05,
"exclusiveMaximum": 0.5,
"exclusiveMinimum": 0
},
"methods": {
"type": "array",
"items": {
"enum": [
"bonferroni",
"holm",
"benjamini_hochberg"
],
"type": "string"
},
"default": [
"bonferroni",
"holm",
"benjamini_hochberg"
],
"maxItems": 3,
"minItems": 1
},
"pValues": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"p"
],
"properties": {
"p": {
"type": "number",
"maximum": 1,
"minimum": 0
},
"id": {
"type": "string",
"maxLength": 64,
"minLength": 1
}
}
},
"maxItems": 10000,
"minItems": 1
}
}
}OLS trend test on daily lift with early-versus-late means, classifying the pattern as novelty, primacy or stable. Price $0.01 USDC. POST /api/v1/experimentation/novelty-effect-detect. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| alpha | number | |
| daily* | array | |
| liftType | string | |
| earlyDays | integer |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"daily"
],
"properties": {
"alpha": {
"type": "number",
"default": 0.05,
"exclusiveMaximum": 0.5,
"exclusiveMinimum": 0
},
"daily": {
"type": "array",
"items": {
"type": "object",
"required": [
"day",
"lift"
],
"properties": {
"day": {
"type": "number"
},
"lift": {
"type": "number"
}
}
},
"maxItems": 365,
"minItems": 6
},
"liftType": {
"enum": [
"relative",
"absolute"
],
"type": "string"
},
"earlyDays": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1
}
}
}Chi-square goodness-of-fit test of observed arm counts against expected traffic shares, with an exact binomial p-value for tiny two-arm counts and generic causes when a mismatch is flagged. Price $0.01 USDC. POST /api/v1/experimentation/sample-ratio-mismatch. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| arms* | array | |
| threshold | number |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"arms"
],
"properties": {
"arms": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"observed",
"expectedShare"
],
"properties": {
"name": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"observed": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"expectedShare": {
"type": "number",
"maximum": 1,
"exclusiveMinimum": 0
}
}
},
"maxItems": 20,
"minItems": 2
},
"threshold": {
"type": "number",
"default": 0.0005,
"exclusiveMaximum": 1,
"exclusiveMinimum": 0
}
}
}Required users per arm and duration for a target minimum detectable effect, or the MDE for a fixed sample, for proportion or mean metrics with power, multi-arm Bonferroni and unequal allocation. Price $0.01 USDC. POST /api/v1/experimentation/sample-size-mde. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| mde | number | |
| arms | integer | |
| alpha | number | |
| power | number | |
| mdeType | string | |
| nPerArm | integer | |
| baseline | number | |
| allocation | array | |
| baselineSd | number | |
| correction | string | |
| dailyUsers | number |
Per-segment conversion lift with Benjamini-Hochberg adjusted p-values, a Cochran Q heterogeneity test and suppression of small segments. Price $0.02 USDC. POST /api/v1/experimentation/segment-lift. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| alpha | number | |
| segments* | array | |
| minUsersPerArm | integer |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"segments"
],
"properties": {
"alpha": {
"type": "number",
"default": 0.05,
"exclusiveMaximum": 0.5,
"exclusiveMinimum": 0
},
"segments": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"control",
"treatment"
],
"properties": {
"name": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"control": {
"type": "object",
"required": [
"users",
"conversions"
],
"properties": {
"users": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1
},
"conversions": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
}
},
"treatment": {
"type": "object",
"required": [
"users",
"conversions"
],
"properties": {
"users": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1
},
"conversions": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
}
}
}
},
"maxItems": 100,
"minItems": 1
},
"minUsersPerArm": {
"type": "integer",
"default": 100,
"maximum": 9007199254740991,
"minimum": 0
}
}
}Lan-DeMets group-sequential boundaries (O'Brien-Fleming or Pocock spending) for planned looks with a stop/continue decision, or an always-valid mSPRT p-value for continuous monitoring. Price $0.04 USDC. POST /api/v1/experimentation/sequential-test. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| mode* | string | |
| tau2 | number | |
| alpha | number | |
| estimate | number | |
| spending | string | |
| variance | number | |
| observedZ | array | |
| informationFractions | array |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"mode"
],
"properties": {
"mode": {
"enum": [
"group_sequential",
"msprt"
],
"type": "string"
},
"tau2": {
"type": "number",
"exclusiveMinimum": 0
},
"alpha": {
"type": "number",
"default": 0.05,
"exclusiveMaximum": 0.5,
"exclusiveMinimum": 0
},
"estimate": {
"type": "number"
},
"spending": {
"enum": [
"obrien_fleming",
"pocock"
],
"type": "string",
"default": "obrien_fleming"
},
"variance": {
"type": "number",
"exclusiveMinimum": 0
},
"observedZ": {
"type": "array",
"items": {
"type": [
"number",
"null"
]
},
"maxItems": 20
},
"informationFractions": {
"type": "array",
"items": {
"type": "number",
"maximum": 1,
"exclusiveMinimum": 0
},
"maxItems": 20,
"minItems": 1
}
}
}We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Nov 19, 2026.
No readOnlyHint / destructiveHint annotations, so clients can't tell a read from a write without asking.
Fix: Add annotations to each tool, e.g. { readOnlyHint: true } for tools that only read.
| metricType* | string |
| alternative | string |
| baselineMean | number |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"metricType"
],
"properties": {
"mde": {
"type": "number",
"exclusiveMinimum": 0
},
"arms": {
"type": "integer",
"default": 2,
"maximum": 10,
"minimum": 2
},
"alpha": {
"type": "number",
"default": 0.05,
"exclusiveMaximum": 0.5,
"exclusiveMinimum": 0
},
"power": {
"type": "number",
"default": 0.8,
"exclusiveMaximum": 0.999,
"exclusiveMinimum": 0.5
},
"mdeType": {
"enum": [
"relative",
"absolute"
],
"type": "string",
"default": "relative"
},
"nPerArm": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 2
},
"baseline": {
"type": "number",
"exclusiveMaximum": 1,
"exclusiveMinimum": 0
},
"allocation": {
"type": "array",
"items": {
"type": "number",
"exclusiveMaximum": 1,
"exclusiveMinimum": 0
},
"maxItems": 10,
"minItems": 2
},
"baselineSd": {
"type": "number",
"exclusiveMinimum": 0
},
"correction": {
"enum": [
"bonferroni",
"none"
],
"type": "string",
"default": "none"
},
"dailyUsers": {
"type": "number",
"exclusiveMinimum": 0
},
"metricType": {
"enum": [
"proportion",
"mean"
],
"type": "string"
},
"alternative": {
"enum": [
"two-sided",
"greater",
"less"
],
"type": "string",
"default": "two-sided"
},
"baselineMean": {
"type": "number"
}
}
}