
rmoriebricklayer - Reproducible Data Capsules with Provenance
For any data an analysis depends on (tables, spreadsheets, microdata from surveys, model outputs, archived documents), from open-data portals and statistical agencies to a researcher's own files, so that a result can be traced to the exact data behind it and checked again afterwards. A 'capsule' records where each source came from, its Secure Hash Algorithm 256 ('SHA-256') hash, the schema it should have and an archived copy in the Internet Archive 'Wayback Machine' (<https://web.archive.org/>); sources are found through the Comprehensive Knowledge Archive Network ('CKAN', <https://ckan.org/>). Run again, a capsule says whether each source still matches and, if it does not, how its distribution moved (Kolmogorov-Smirnov, chi-square, population stability index and 'Benford' first-digit screens), and when a source cannot be reached it runs on schema-driven synthetic data that is marked as such. Capsules can be signed with keyed hashes ('HMAC-SHA-256', RFC 2104) or with the post-quantum signature standards 'ML-DSA' (FIPS 204), 'SLH-DSA' (FIPS 205) and 'XMSS' (RFC 8391), implemented from the standards with no system cryptography library and checked against 'OpenSSL' 3.5 and the known-answer vectors of 'NIST' (the US National Institute of Standards and Technology). For published administrative tables, one kind of source among many, it computes period-over-period change with exact intervals, trends (Mann-Kendall with 'Theil-Sen' slopes), rates, and the bounds that rounding and suppression in a release imply; small-area rates with the empirical Bayes shrinkage of Clayton and 'Kaldor' (1987) <doi:10.2307/2532003>; self-exciting event series as 'Hawkes' processes; custodial populations by stock-and-flow measures; the burden of air pollution from dispersion to attributable deaths; and the effect of a policy from a panel of such tables, by difference in differences with staggered adoption, synthetic difference in differences ('Arkhangelsky' and others (2021) <doi:10.1257/aer.20190159>), matching on trajectories before treatment and double machine learning ('Chernozhukov' and others (2018) <doi:10.1111/ectj.12097>).
Last updated
academic-researchagpl-3-0cckancppcriminologycryptographyhawkes-processmorieopen-datareproducibilityrmoriermoriedatasiusocial-sciencesociolegal-studiespecial-investigations-unitcurlzlibcpp
8.14 score 1 stars 2 dependents 73 scripts 788 downloadscrimlab - Statistical Toolkit for Criminology and Sociolegal Research
Statistical methods for courts, corrections, policing, forensics and sociolegal research, computed in a compiled 'C++' core. Disparity tests: the veil-of-darkness contrast of Grogger and Ridgeway (2006) <doi:10.1198/016214506000000168>, the outcome test and its infra-marginality problem, benchmark decomposition of resident disparities, dyadic offending rates, and the bounds a relative risk obeys given an odds ratio. Forensic methods: genotype match probabilities with the correction of Balding and Nichols (1994) <doi:10.1016/0379-0738(94)90222-4>, the log-likelihood-ratio cost of Brummer and du Preez (2006) <doi:10.1016/j.csl.2005.08.001> with its calibrated minimum, mixture likelihood ratios, kinship and paternity indices, database-search corrections, and Tippett and empirical-cross-entropy plots. Policy evaluation: difference in differences, event studies, staggered adoption, synthetic control and regression discontinuity, with their plots. Also measures of sentencing, custody and criminal careers, group-based trajectories, co-offending networks, spatial statistics of incidents, small-count intervals, sampling designs, randomisation tests and other designs of experiments, estimates from the National Crime Victimization Survey with design-based and generalised-variance standard errors, screens of financial records, year-over-year change, survey estimates and audits of risk scores. Police operations and traffic: staffing from the workload of calls for service, Erlang queuing models of dispatch, shift coverage under time-varying demand (Green, Kolesar and Whitt (2007) <doi:10.1111/j.1937-5956.2007.tb00164.x>), demand forecasts checked on held-out past periods, and road-safety network screening with the empirical Bayes before-after method of the Highway Safety Manual of the American Association of State Highway and Transportation Officials ('AASHTO') (2010, ISBN:978-1-56051-477-0), as Lord, Qin and Geedipally (2021, ISBN:978-0-12-816818-9) set it out. Alcohol and drug screening scores, the blood alcohol concentration estimated by Widmark's formula with the factor of Seidl, Jensen and Alt (2000) <doi:10.1007/s004140000154>, and statistical learning for risk forecasts (random forests, boosting and Bayesian additive regression trees). Some functions download public data (the Federal Bureau of Investigation's Crime Data Explorer, with a key the user supplies, and open data portals); none does so unless called. Where an identity or bound has a machine-checked proof ('Lean'), the package names the theorem.
Last updated
criminologysociolegal researchforensic sciencepolicingcourtscorrectionssentencingdisparitylikelihood ratiocausal inferencespatial statisticscausal-inferencecppdifference-in-differencesforensic-sciencelikelihood-ratiopythonregression-discontinuitysociolegalspatial-statisticsstatisticssynthetic-controlcpp
5.63 score 59 scriptsrmorie - Multi-Domain Open Research and Inferential Estimation
Self-contained multi-domain scientific computing toolkit for observational inference and intervention analysis, hosting the Multilevel Reconciliation Methodology ('MRM') framework for Canadian correctional, police, and oversight data as its primary application. Every statistical algorithm is implemented in the package itself (R and 'C++') and cross-validated against its reference implementation; no other statistical package is called at runtime. Provides general-purpose causal estimators -- average treatment effects on the full, treated, and control populations ('ATE', 'ATT', 'ATC'), group, conditional, and local average treatment effects ('GATE', 'CATE', 'LATE'), augmented inverse-probability weighting ('AIPW'), and G-computation -- survey sampling methods (stratified, cluster, probability-proportional-to-size, bootstrap, calibration weights), propensity-score and doubly-robust estimators, and sensitivity analyses (E-value, 'Rosenbaum' bounds). Companion modules support signal processing and spectral analysis, hash and signature primitives, spatial statistics, statistical physics of crime ('Hawkes' self-exciting processes, reaction-diffusion, Levy flight, urban scaling), and classical-test-theory and item-response-theory measurement models, alongside ingestion utilities for officially published reports of the Ontario Special Investigations Unit ('SIU', <https://www.siu.on.ca/>, police oversight) and of federal Structured Intervention Units. Additional open-data connectors cover the 'CKAN' (Comprehensive Knowledge Archive Network, <https://ckan.org/>) portal family including Canada's federal portal (<https://open.canada.ca/>), Statistics Canada (<https://www.statcan.gc.ca/>), the municipal 'Socrata' portals of Chicago (<https://data.cityofchicago.org/>), New York City (<https://opendata.cityofnewyork.us/>), and Calgary (<https://data.calgary.ca/>), and the Toronto Police Service public-safety data portal (<https://data.tps.ca/>); none of these require an account or API (application programming interface) key.
Last updated
softwarestatisticalmethodsurvivalspatialtimeseriesbayesianmultiplecomparisonvisualizationacademic-researchcarceral-datacausal-inferencecriminologymrm-frameworkontario-siupolice-data-miningpolice-oversightsiusiu-parserspecial-investigations-unitcurllibsodiumzlibopenblascppopenmp
5.20 score
