{
  "_id": "6a214976cd65a98ecbd2c174",
  "Package": "cosmic",
  "Title": "Conditional Ordinal Stereotype Model for Incident-Level\nComparison",
  "Version": "0.5",
  "Authors@R": "person(\"Greg\", \"Ridgeway\", , \"gridge@upenn.edu\", role = c(\"aut\", \"cre\"))",
  "Description": "Implements the Conditional Ordinal Stereotype Model for\nIncident-Level Comparison (COSMIC), a method for analyzing\nordinal outcomes observed across multiple actors within shared\nevents. The model uses a conditional likelihood to remove\nevent-level confounding and estimate actor-specific\npropensities relative to their peers. Efficient computation is\nachieved via a dynamic programming algorithm for the\nPoisson-multinomial normalization term, enabling scalable\nestimation with Markov chain Monte Carlo. The package provides\ntools for data preparation, model fitting using Stan, and\nextraction of posterior summaries for comparative inference.\nEstimation of police officer propensity to escalate force is\nthe primary motivation for the model. For more details see\nRidgeway (2026) \"A Conditional Ordinal Stereotype Model to\nEstimate Police Officers’ Propensity to Escalate Force\"\n<doi:10.1080/01621459.2025.2597050>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "Additional_repositories": "https://stan-dev.r-universe.dev",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "Repository": "https://gregridgeway.r-universe.dev",
  "Date/Publication": "2026-04-30 01:02:08 UTC",
  "RemoteUrl": "https://github.com/gregridgeway/cosmic",
  "RemoteRef": "HEAD",
  "RemoteSha": "5b6ef2e7e1f8b951f24c95031a9ef2ceb5fbc652",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-04 09:43:05 UTC",
    "User": "root"
  },
  "Author": "Greg Ridgeway [aut, cre]",
  "Maintainer": "Greg Ridgeway <gridge@upenn.edu>",
  "MD5sum": "4d46f02636b79b7ad3c7b783b6e28d4e",
  "_user": "gregridgeway",
  "_type": "src",
  "_file": "cosmic_0.5.tar.gz",
  "_fileid": "8e693671b901edbf931779667c0722a8820017bc824264eaf77336c0fe148c5b",
  "_filesize": 1401286,
  "_sha256": "8e693671b901edbf931779667c0722a8820017bc824264eaf77336c0fe148c5b",
  "_created": "2026-06-04T09:43:05.000Z",
  "_published": "2026-06-04T09:46:30.437Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79492192819,
      "time": 121,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7408241993"
    },
    {
      "job": 79492192796,
      "time": 137,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7408247713"
    },
    {
      "job": 79492192885,
      "time": 161,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7408244617"
    },
    {
      "job": 79492192975,
      "time": 168,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7408247058"
    },
    {
      "job": 79491606253,
      "time": 204,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7408199092"
    },
    {
      "job": 79492192740,
      "time": 123,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7408242609"
    },
    {
      "job": 79492192884,
      "time": 71,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7408224992"
    },
    {
      "job": 79492192831,
      "time": 74,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7408226160"
    },
    {
      "job": 79492192883,
      "time": 69,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7408224356"
    }
  ],
  "_buildurl": "https://github.com/r-universe/gregridgeway/actions/runs/26943788642",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/gregridgeway/cosmic",
  "_commit": {
    "id": "5b6ef2e7e1f8b951f24c95031a9ef2ceb5fbc652",
    "author": "Greg Ridgeway <gregridgeway@gmail.com>",
    "committer": "Greg Ridgeway <gregridgeway@gmail.com>",
    "message": "add cmdstanr repos for rhub\n",
    "time": 1777510928
  },
  "_maintainer": {
    "name": "Greg Ridgeway",
    "email": "gridge@upenn.edu",
    "login": "gregridgeway",
    "linkedin": "in/gregridgeway",
    "description": "",
    "uuid": 8985024
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "posterior",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "arrangements",
      "role": "Suggests"
    },
    {
      "package": "cmdstanr",
      "version": ">= 0.9.0",
      "role": "Suggests"
    },
    {
      "package": "future",
      "role": "Suggests"
    },
    {
      "package": "future.apply",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "kableExtra",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "MASS",
      "role": "Suggests"
    },
    {
      "package": "progressr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "xtable",
      "role": "Suggests"
    }
  ],
  "_owner": "gregridgeway",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-15",
      "n": 1
    },
    {
      "week": "2026-16",
      "n": 21
    },
    {
      "week": "2026-17",
      "n": 39
    },
    {
      "week": "2026-18",
      "n": 10
    }
  ],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "gregridgeway",
      "count": 73,
      "uuid": 8985024
    }
  ],
  "_userbio": {
    "uuid": 8985024,
    "type": "user",
    "name": "Greg Ridgeway"
  },
  "_downloads": {
    "count": 249,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/cosmic"
  },
  "_devurl": "https://github.com/gregridgeway/cosmic",
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/cosmic.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/gregridgeway/cosmic",
  "_realowner": "gregridgeway",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.5",
      "date": "2026-05-04"
    }
  ],
  "_exports": [
    "cosmic",
    "diagnose",
    "officer_summary",
    "outlier_report",
    "posterior"
  ],
  "_help": [
    {
      "page": "cosmic",
      "title": "Fit the Conditional Ordinal Stereotype Model (COSMIC)",
      "topics": [
        "cosmic"
      ]
    },
    {
      "page": "diagnose",
      "title": "Diagnose a COSMIC fit",
      "topics": [
        "diagnose",
        "diagnose.cosmic_fit"
      ]
    },
    {
      "page": "officer_summary",
      "title": "Summarize officers relative to their peer groups",
      "topics": [
        "officer_summary"
      ]
    },
    {
      "page": "outlier_report",
      "title": "Create an outlier-focused report table",
      "topics": [
        "outlier_report"
      ]
    },
    {
      "page": "posterior",
      "title": "Extract posterior draws from a COSMIC model",
      "topics": [
        "posterior",
        "posterior.cosmic_fit"
      ]
    },
    {
      "page": "summary.cosmic_fit",
      "title": "Print and summarize a COSMIC fit",
      "topics": [
        "print.cosmic_fit",
        "summary.cosmic_fit"
      ]
    }
  ],
  "_rundeps": [
    "abind",
    "backports",
    "checkmate",
    "cli",
    "distributional",
    "dplyr",
    "generics",
    "glue",
    "lifecycle",
    "magrittr",
    "matrixStats",
    "numDeriv",
    "pillar",
    "pkgconfig",
    "posterior",
    "R6",
    "rlang",
    "tensorA",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "getting-started.Rmd",
      "filename": "getting-started.html",
      "title": "Introduction to cosmic",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Load the Seattle example",
        "Fit the COSMIC model",
        "Check sampler diagnostics",
        "Summarize officers relative to their peers",
        "Flag officers in the tails of the peer distribution",
        "Optional posterior extraction"
      ],
      "created": "2026-04-13 23:36:14",
      "modified": "2026-04-29 22:28:34",
      "commits": 8
    }
  ],
  "_score": 3.6020599913279625,
  "_indexed": true,
  "_nocasepkg": "cosmic",
  "_universes": [
    "gregridgeway"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.5",
      "date": "2026-06-04T09:45:10.000Z",
      "distro": "noble",
      "commit": "5b6ef2e7e1f8b951f24c95031a9ef2ceb5fbc652",
      "fileid": "832bb0a8263e3fcb6895af5a8263dc4b834bb950ff85feff7aafd4adb3d94a3f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gregridgeway/actions/runs/26943788642"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.5",
      "date": "2026-06-04T09:45:26.000Z",
      "distro": "noble",
      "commit": "5b6ef2e7e1f8b951f24c95031a9ef2ceb5fbc652",
      "fileid": "f8109642634172e083e4657c32199f4eec54ce161c6de1bfa59342f3415822e2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gregridgeway/actions/runs/26943788642"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.5",
      "date": "2026-06-04T09:45:20.000Z",
      "commit": "5b6ef2e7e1f8b951f24c95031a9ef2ceb5fbc652",
      "fileid": "81138ce208aacf3900192efe12c143a73f8d46ccf2b63e36cfa5206ad59e918c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gregridgeway/actions/runs/26943788642"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.5",
      "date": "2026-06-04T09:45:24.000Z",
      "commit": "5b6ef2e7e1f8b951f24c95031a9ef2ceb5fbc652",
      "fileid": "b1a4c72272d553305dcab511795021aa70f67673e94c5fd6589acbfc856f50d7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gregridgeway/actions/runs/26943788642"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.5",
      "date": "2026-06-04T09:45:24.000Z",
      "commit": "5b6ef2e7e1f8b951f24c95031a9ef2ceb5fbc652",
      "fileid": "57fc39b214c88cdd9af3fb103ae73ed535c69dcae28af01522619435ef69f645",
      "status": "success",
      "buildurl": "https://github.com/r-universe/gregridgeway/actions/runs/26943788642"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.5",
      "date": "2026-06-04T09:44:16.000Z",
      "commit": "5b6ef2e7e1f8b951f24c95031a9ef2ceb5fbc652",
      "fileid": "ae23f3e019537b0292b6b759a0e6fc69e0c3e7d022367b8504c0a74bde9832fe",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gregridgeway/actions/runs/26943788642"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.5",
      "date": "2026-06-04T09:44:17.000Z",
      "commit": "5b6ef2e7e1f8b951f24c95031a9ef2ceb5fbc652",
      "fileid": "5dffaa10eb4162da8063857a57a21eb9e3bd451030f1dae6e852b5f6df31dcb9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gregridgeway/actions/runs/26943788642"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.5",
      "date": "2026-06-04T09:44:13.000Z",
      "commit": "5b6ef2e7e1f8b951f24c95031a9ef2ceb5fbc652",
      "fileid": "86e8371b92b1703f1e1c9de94f79b009fe71265cf97a1abc94cd0734877ccab0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gregridgeway/actions/runs/26943788642"
    }
  ]
}