Conditional Ordinal Stereotype Model for Incident-Level Comparison

Implements the Conditional Ordinal Stereotype Model for Incident-Level Comparison (COSMIC), a method for analyzing ordinal outcomes observed across multiple actors within shared events. The model uses a conditional likelihood to remove event-level confounding and estimate actor-specific propensities relative to their peers. Efficient computation is achieved via a dynamic programming algorithm for the Poisson-multinomial normalization term, enabling scalable estimation with Markov chain Monte Carlo. The package provides tools for data preparation, model fitting using Stan, and extraction of posterior summaries for comparative inference. Estimation of police officer propensity to escalate force is the primary motivation for the model. For more details see Ridgeway (2026) "A Conditional Ordinal Stereotype Model to Estimate Police Officers’ Propensity to Escalate Force" .


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("cosmic")

0.5 by Greg Ridgeway, 5 months ago


Browse source code at https://github.com/cran/cosmic


Authors: Greg Ridgeway [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports dplyr, posterior, stats

Suggests arrangements, cmdstanr, future, future.apply, ggplot2, kableExtra, knitr, MASS, progressr, rmarkdown, testthat, xtable


See at CRAN