{
  "generated_at": "2026-02-16T13:42:02",
  "shape": {
    "rows": 995,
    "columns": 54
  },
  "variable_overview": {
    "numeric_columns": 23,
    "categorical_columns": 29
  },
  "numeric_summary": {
    "age": {
      "count": 995,
      "mean": 34.18,
      "median": 30.0,
      "std": 18.98,
      "iqr": 30.5,
      "min": 0.0,
      "max": 84.0,
      "p95": 69.0
    },
    "time_to_hospital_min": {
      "count": 995,
      "mean": 72.65,
      "median": 42.0,
      "std": 67.01,
      "iqr": 71.0,
      "min": 0.0,
      "max": 203.5,
      "p95": 203.5
    },
    "pmi": {
      "count": 995,
      "mean": 2.0,
      "median": 2.0,
      "std": 0.0,
      "iqr": 0.0,
      "min": 2.0,
      "max": 2.0,
      "p95": 2.0
    },
    "ems": {
      "count": 407,
      "mean": 2.18,
      "median": 2.0,
      "std": 0.9,
      "iqr": 1.0,
      "min": 0.5,
      "max": 4.0,
      "p95": 3.0
    },
    "er": {
      "count": 887,
      "mean": 0.0,
      "median": 0.0,
      "std": 0.0,
      "iqr": 0.0,
      "min": 0.0,
      "max": 0.0,
      "p95": 0.0
    }
  },
  "histograms": {
    "age": {
      "bin_edges": [
        0.0,
        7.0,
        14.0,
        21.0,
        28.0,
        35.0,
        42.0,
        49.0,
        56.0,
        63.0,
        70.0,
        77.0,
        84.0
      ],
      "counts": [
        27,
        83,
        197,
        136,
        134,
        80,
        89,
        77,
        77,
        47,
        35,
        13
      ]
    },
    "time_to_hospital_min": {
      "bin_edges": [
        0.0,
        16.96,
        33.92,
        50.88,
        67.83,
        84.79,
        101.75,
        118.71,
        135.67,
        152.62,
        169.58,
        186.54,
        203.5
      ],
      "counts": [
        103,
        300,
        171,
        114,
        42,
        20,
        21,
        23,
        8,
        14,
        13,
        166
      ]
    }
  },
  "category_summary": {
    "sex_label": [
      {
        "label": "ชาย",
        "count": 604,
        "rate_pct": 60.7
      },
      {
        "label": "หญิง",
        "count": 368,
        "rate_pct": 36.98
      },
      {
        "label": "ไม่ระบุ",
        "count": 23,
        "rate_pct": 2.31
      }
    ],
    "prov": [
      {
        "label": "ชลบุรี",
        "count": 48,
        "rate_pct": 4.82
      },
      {
        "label": "ขอนแก่น",
        "count": 42,
        "rate_pct": 4.22
      },
      {
        "label": "เชียงราย",
        "count": 38,
        "rate_pct": 3.82
      },
      {
        "label": "นครราชสีมา",
        "count": 36,
        "rate_pct": 3.62
      },
      {
        "label": "สุราษฎร์ธานี",
        "count": 30,
        "rate_pct": 3.02
      },
      {
        "label": "นครศรีธรรมราช",
        "count": 28,
        "rate_pct": 2.81
      },
      {
        "label": "สงขลา",
        "count": 27,
        "rate_pct": 2.71
      },
      {
        "label": "ราชบุรี",
        "count": 26,
        "rate_pct": 2.61
      },
      {
        "label": "ระยอง",
        "count": 23,
        "rate_pct": 2.31
      },
      {
        "label": "ลำปาง",
        "count": 23,
        "rate_pct": 2.31
      },
      {
        "label": "อุดรธานี",
        "count": 22,
        "rate_pct": 2.21
      },
      {
        "label": "นครปฐม",
        "count": 22,
        "rate_pct": 2.21
      },
      {
        "label": "ชัยภูมิ",
        "count": 20,
        "rate_pct": 2.01
      },
      {
        "label": "สุพรรณบุรี",
        "count": 20,
        "rate_pct": 2.01
      },
      {
        "label": "เชียงใหม่",
        "count": 19,
        "rate_pct": 1.91
      }
    ],
    "cause": [
      {
        "label": "1",
        "count": 992,
        "rate_pct": 99.7
      },
      {
        "label": "2",
        "count": 3,
        "rate_pct": 0.3
      }
    ],
    "injby": [
      {
        "label": "1",
        "count": 994,
        "rate_pct": 99.9
      },
      {
        "label": "N",
        "count": 1,
        "rate_pct": 0.1
      }
    ]
  },
  "monthly_trend": [
    {
      "month": "2025-01",
      "count": 111
    },
    {
      "month": "2025-02",
      "count": 102
    },
    {
      "month": "2025-03",
      "count": 96
    },
    {
      "month": "2025-04",
      "count": 105
    },
    {
      "month": "2025-05",
      "count": 87
    },
    {
      "month": "2025-06",
      "count": 73
    },
    {
      "month": "2025-07",
      "count": 74
    },
    {
      "month": "2025-08",
      "count": 94
    },
    {
      "month": "2025-09",
      "count": 81
    },
    {
      "month": "2025-10",
      "count": 88
    },
    {
      "month": "2025-11",
      "count": 84
    }
  ],
  "correlation_matrix": {
    "columns": [
      "age",
      "time_to_hospital_min",
      "pmi",
      "ems",
      "er"
    ],
    "matrix": [
      [
        1.0,
        0.07,
        NaN,
        -0.003,
        NaN
      ],
      [
        0.07,
        1.0,
        NaN,
        -0.325,
        NaN
      ],
      [
        NaN,
        NaN,
        NaN,
        NaN,
        NaN
      ],
      [
        -0.003,
        -0.325,
        NaN,
        1.0,
        NaN
      ],
      [
        NaN,
        NaN,
        NaN,
        NaN,
        NaN
      ]
    ]
  },
  "missing_pattern": {
    "missing_pct_by_column": {
      "injfrom_t": 99.799,
      "injt_t": 98.693,
      "er_t": 98.291,
      "occu_t": 91.859,
      "rdate": 87.94,
      "staward": 86.734,
      "ems": 59.095,
      "er": 10.854,
      "refer": 9.447,
      "hprov": 9.347,
      "timer": 7.337,
      "diser": 6.935,
      "staer": 5.126,
      "activity": 4.221,
      "injp": 3.819,
      "aplace": 2.513,
      "sex": 2.312,
      "atohosp": 2.111,
      "aampur": 0.302,
      "injoccu": 0.101,
      "mass_casualty": 0.0,
      "record_id": 0.0,
      "head_injury": 0.0,
      "home": 0.0,
      "cannabis": 0.0,
      "sedative_drug": 0.0,
      "amphetamine": 0.0,
      "drugs": 0.0,
      "risk2_etc": 0.0,
      "adate_dt": 0.0,
      "hdate_dt": 0.0,
      "time_to_hospital_min": 0.0,
      "incident_month": 0.0,
      "kratom": 0.0,
      "risk5": 0.0,
      "pmi": 0.0,
      "injby": 0.0,
      "age": 0.0,
      "occu": 0.0,
      "adate": 0.0,
      "atime": 0.0,
      "hdate": 0.0,
      "htime": 0.0,
      "apoint": 0.0,
      "cause": 0.0,
      "prov": 0.0,
      "injt": 0.0,
      "injfrom": 0.0,
      "icdcause": 0.0,
      "risk1": 0.0,
      "risk2": 0.0,
      "risk3": 0.0,
      "risk4": 0.0,
      "sex_label": 0.0
    },
    "missing_pair_top10": [
      {
        "col_a": "injt_t",
        "col_b": "injfrom_t",
        "both_missing_pct": 98.492
      },
      {
        "col_a": "injfrom_t",
        "col_b": "er_t",
        "both_missing_pct": 98.09
      },
      {
        "col_a": "injt_t",
        "col_b": "er_t",
        "both_missing_pct": 96.985
      },
      {
        "col_a": "occu_t",
        "col_b": "injfrom_t",
        "both_missing_pct": 91.759
      },
      {
        "col_a": "occu_t",
        "col_b": "injt_t",
        "both_missing_pct": 90.553
      },
      {
        "col_a": "occu_t",
        "col_b": "er_t",
        "both_missing_pct": 90.251
      },
      {
        "col_a": "injfrom_t",
        "col_b": "rdate",
        "both_missing_pct": 87.839
      },
      {
        "col_a": "injt_t",
        "col_b": "rdate",
        "both_missing_pct": 87.035
      },
      {
        "col_a": "injfrom_t",
        "col_b": "staward",
        "both_missing_pct": 86.633
      },
      {
        "col_a": "staward",
        "col_b": "rdate",
        "both_missing_pct": 86.633
      }
    ]
  }
}