← All procedures

statistics.partialConjunction

The p of the claim "at least `need` of these tests have a real effect" (Benjamini and Heller, 2008). The value is `(m - need + 1)` times the `need`-th smallest p, at most 1. It has no condition on how the tests depend on each other. With 2 tests and `need` 2, the value is the larger p.

CLI
Package
@procedures/statistics · README
Path
["statistics","partialConjunction"]
CLI
mark statistics partialConjunction --pValues <number[]> --need <number>
As data
{"$proc":["statistics","partialConjunction"],"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","partialConjunction"], { pValues: [], need: 1 });
console.log(JSON.stringify(result));

From the command line

$ mark statistics partialConjunction --pValues <number[]> --need <number>

As data, in a program

{
  "$proc": ["statistics", "partialConjunction"],
  "input": { "pValues": [], "need": 1 }
}

Input

FieldTypeRequiredDefaultDescription
pValuesnumber[]yes
neednumberyes

Output

The schema does not list fields (number).

JSON Schemas
{
  "input": {
    "type": "object",
    "properties": {
      "pValues": {
        "type": "array",
        "items": {
          "type": "number"
        }
      },
      "need": {
        "type": "number"
      }
    },
    "required": [
      "pValues",
      "need"
    ],
    "additionalProperties": false
  },
  "output": {
    "type": "number"
  }
}