API ReferenceapianalyticsPOST /patterns/correct-pvalues

POST /patterns/correct-pvalues

Service: analytics · operationId: (none)

Required scopes

(no scope declared — review service config)

Request body

{
  "type": "object",
  "properties": {
    "p_values": {
      "type": "array",
      "items": {
        "type": "number"
      }
    },
    "method": {
      "type": "string",
      "enum": [
        "bonferroni",
        "holm",
        "fdr_bh"
      ],
      "default": "fdr_bh"
    },
    "alpha": {
      "type": "number",
      "default": 0.05
    }
  },
  "required": [
    "p_values"
  ]
}

Responses

200 Multiple testing correction completed

{
  "type": "object",
  "properties": {
    "method": {
      "type": "string",
      "enum": [
        "bonferroni",
        "holm",
        "fdr_bh"
      ]
    },
    "alpha": {
      "type": "number"
    },
    "adjusted_pvalues": {
      "type": "array",
      "items": {
        "type": "number"
      }
    },
    "rejected": {
      "type": "array",
      "items": {
        "type": "boolean"
      }
    }
  },
  "required": [
    "method",
    "alpha",
    "adjusted_pvalues",
    "rejected"
  ]
}

400 Invalid request

{
  "type": "object",
  "properties": {
    "error": {
      "type": "string"
    },
    "message": {
      "type": "string"
    }
  },
  "required": [
    "error",
    "message"
  ]
}

Example

curl -X POST https://analytics.platform.loop.health/patterns/correct-pvalues \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ ... }'