Other packages > Find by keyword >

cosmic  

Conditional Ordinal Stereotype Model for Incident-Level Comparison
View on CRAN: Click here


Download and install cosmic package within the R console
Install from CRAN:
install.packages("cosmic")

Install from Github:
library("remotes")
install_github("cran/cosmic")

Install by package version:
library("remotes")
install_version("cosmic", "0.5")



Attach the package and use:
library("cosmic")
Maintained by
Greg Ridgeway
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2026-05-04
Latest Update: 2026-05-04
Description:
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" <doi:10.1080/01621459.2025.2597050>.
How to cite:
Greg Ridgeway (2026). cosmic: Conditional Ordinal Stereotype Model for Incident-Level Comparison. R package version 0.5, https://cran.r-project.org/web/packages/cosmic. Accessed 25 Oct. 2026.
Previous versions and publish date:
No previous versions
Other packages that cited cosmic R package
View cosmic citation profile
Other R packages that cosmic depends, imports, suggests or enhances
Complete documentation for cosmic
Functions, R codes and Examples using the cosmic R package
Full cosmic package functions and examples
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

guardianapi  
Access 'The Guardian' Newspaper Open Data API
Access to 'The Guardian' newspaper's open API , containing ...
Download / Learn more Package Citations See dependency  
imputeTS  
Time Series Missing Value Imputation
Imputation (replacement) of missing values in univariate time series. Offers several imputation fu ...
Download / Learn more Package Citations See dependency  
quickcode  
Quick and Essential 'R' Tricks for Better Scripts
The NOT functions, 'R' tricks and a compilation of some simple quick plus often used 'R' codes to im ...
Download / Learn more Package Citations See dependency  
RcmdrPlugin.aRnova  
R Commander Plug-in for Repeated-Measures ANOVA
R Commander plug-in for repeated-measures and mixed-design ('split-plot') ANOVA. It adds a new men ...
Download / Learn more Package Citations See dependency  
fstcore  
R Bindings to the 'Fstlib' Library
The 'fstlib' library provides multithreaded serialization of compressed data frames using the 'fst' ...
Download / Learn more Package Citations See dependency  
CTT  
Classical Test Theory Functions
A collection of common test and item analyses from a classical test theory (CTT) framework. Analyses ...
Download / Learn more Package Citations See dependency  

29,218

R Packages

247,686

Dependencies

77,281

Author Associations

29,219

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA