statistics.holm
The Holm step-down correction of a family of tests (Holm, 1979). It keeps the chance of one false claim or more in the family at most `level`. It has no condition on how the tests depend on each other. The result is in the order of the input.
CLI- Package
- @procedures/statistics · README
- Path
["statistics","holm"]- CLI
mark statistics holm --pValues <number[]>- As data
{"$proc":["statistics","holm"],"input":{}}
Use it
In TypeScript
import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/statistics/register"; // registers its procedures
const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["statistics","holm"], { pValues: [] });
console.log(JSON.stringify(result));From the command line
$ mark statistics holm --pValues <number[]>
As data, in a program
{ "$proc": ["statistics", "holm"], "input": { "pValues": [] } }Input
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
pValues | number[] | yes | ||
level | number | no |
Output
The schema does not list fields (object[]).
JSON Schemas
{
"input": {
"type": "object",
"properties": {
"pValues": {
"type": "array",
"items": {
"type": "number"
}
},
"level": {
"type": "number"
}
},
"required": [
"pValues"
],
"additionalProperties": false
},
"output": {
"type": "array",
"items": {
"type": "object",
"properties": {
"p": {
"type": "number",
"description": "The p of the test."
},
"adjusted": {
"type": "number",
"description": "The p after the correction: compare it with the level of the whole family."
},
"reject": {
"type": "boolean",
"description": "The adjusted p is less than the level."
}
},
"required": [
"p",
"adjusted",
"reject"
],
"additionalProperties": {}
}
}
}