Skip to content

sajor2000/methodsmith / plugins/methodsmith/skills/method-model-choice

method-model-choice

Verified

Chooses and justifies the statistical model (regression, mixed/GEE, survival, causal, prediction, Bayesian) after the estimand is set. Use when the user asks which model to fit.

references/ml-prediction-decisions.schema.json

View on GitHub
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Methodsmith prediction decisions, version 1.0",
  "type": "object",
  "additionalProperties": false,
  "required": ["schema_version", "status", "validation", "tuning", "sample_size", "calibration", "fixture_counts", "unresolved"],
  "properties": {
    "schema_version": {"const": "1.0"},
    "status": {"enum": ["blocked", "provisional", "ready_for_review"]},
    "validation": {
      "type": "object",
      "additionalProperties": false,
      "required": ["scheme", "outer_unit"],
      "properties": {
        "scheme": {"enum": ["internal_external_cv", "nested_cv", "held_out", "bootstrap", "other", null]},
        "outer_unit": {"type": ["string", "null"], "minLength": 1}
      }
    },
    "tuning": {
      "type": "object",
      "additionalProperties": false,
      "required": ["objective", "inside_resampling"],
      "properties": {
        "objective": {"type": ["string", "null"], "minLength": 1},
        "inside_resampling": {"type": ["boolean", "null"]}
      }
    },
    "sample_size": {
      "type": "object",
      "additionalProperties": false,
      "required": ["method", "inputs"],
      "properties": {
        "method": {"enum": ["riley", "simulation", "other", null]},
        "inputs": {
          "type": ["object", "null"],
          "additionalProperties": false,
          "required": ["patients", "events", "candidate_predictors"],
          "properties": {
            "patients": {"$ref": "#/$defs/count"},
            "events": {"$ref": "#/$defs/count"},
            "candidate_predictors": {"$ref": "#/$defs/count"}
          }
        }
      }
    },
    "calibration": {
      "type": "object",
      "additionalProperties": false,
      "required": ["methods"],
      "properties": {
        "methods": {"type": ["array", "null"], "minItems": 1, "items": {"type": "string", "minLength": 1}}
      }
    },
    "fixture_counts": {
      "type": "object",
      "additionalProperties": false,
      "required": ["patients", "events", "sites", "candidate_predictors"],
      "properties": {
        "patients": {"$ref": "#/$defs/count"},
        "events": {"$ref": "#/$defs/count"},
        "sites": {"$ref": "#/$defs/count"},
        "candidate_predictors": {"$ref": "#/$defs/count"}
      }
    },
    "unresolved": {"type": "array", "items": {"type": "string", "minLength": 1}}
  },
  "allOf": [{
    "if": {"properties": {"status": {"const": "ready_for_review"}}},
    "then": {
      "properties": {
        "validation": {"properties": {"scheme": {"type": "string"}, "outer_unit": {"type": "string"}}},
        "tuning": {"properties": {"objective": {"type": "string"}, "inside_resampling": {"type": "boolean"}}},
        "sample_size": {"properties": {
          "method": {"type": "string"},
          "inputs": {"type": "object", "properties": {
            "patients": {"type": "integer"}, "events": {"type": "integer"}, "candidate_predictors": {"type": "integer"}
          }}
        }},
        "calibration": {"properties": {"methods": {"type": "array"}}},
        "fixture_counts": {"properties": {
          "patients": {"type": "integer"}, "events": {"type": "integer"},
          "sites": {"type": "integer"}, "candidate_predictors": {"type": "integer"}
        }},
        "unresolved": {"maxItems": 0}
      }
    },
    "else": {"properties": {"unresolved": {"minItems": 1}}}
  }],
  "$defs": {"count": {"type": ["integer", "null"], "minimum": 0}}
}
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall