No packages match

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 downloads

crimlab - 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 scripts

rmorie - 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

noqtis - Notary of Quantum-Safe Traceable Inputs and Seals

Post-quantum signatures, key encapsulation and sealed records, built on the dependency-free 'NOQTIS' C library. Generate key pairs, then sign and verify with the Module-Lattice-Based Digital Signature Algorithm ('ML-DSA') of the National Institute of Standards and Technology (2024) <doi:10.6028/NIST.FIPS.204>, its Stateless Hash-Based Digital Signature Algorithm ('SLH-DSA'; 2024) <doi:10.6028/NIST.FIPS.205>, the 'Ed25519' signatures of Bernstein et al. (2012) <doi:10.1007/s13389-012-0027-1>, or hybrid signatures of 'ML-DSA' with 'Ed25519' that need both halves to verify; establish shared secrets with the Module-Lattice-Based Key-Encapsulation Mechanism ('ML-KEM'; National Institute of Standards and Technology, 2024) <doi:10.6028/NIST.FIPS.203> or with Hamming Quasi-Cyclic ('HQC') key encapsulation, which the fourth round report of Alagic et al. (2025) <doi:10.6028/NIST.IR.8545> selected for standardization and which follows version 5.1 of its submission specification until a standard is published, or with 'FrodoKEM', key encapsulation from learning with errors on unstructured lattices of Glabush et al. (2025) <doi:10.62056/ayivom2hd>, or with hybrids that combine a post-quantum key encapsulation with 'X25519' or 'X448' key exchange ('X-Wing' among them), and seal a message or a file to an 'ML-KEM', 'FrodoKEM' or hybrid key; hash with the Secure Hash Algorithms 'SHA-2' and 'SHA-3', the extendable-output functions 'SHAKE', or the hash function 'BLAKE2b' of Saarinen and Aumasson (2015) <doi:10.17487/RFC7693>, or the tree hash 'KangarooTwelve' of Viguier et al. (2025) <doi:10.17487/RFC9861>; authenticate with a keyed-hash message authentication code ('HMAC'); encrypt with authentication in the Synthetic Initialization Vector ('SIV') mode of the Advanced Encryption Standard ('AES') of Harkins (2008) <doi:10.17487/RFC5297> or in the Galois/Counter Mode with a Synthetic Initialization Vector ('AES-GCM-SIV') of Gueron et al. (2019) <doi:10.17487/RFC8452>, which tolerates a nonce used twice, and keep secret keys under a passphrase with the memory-hard password hashing function 'Argon2id' of Biryukov et al. (2021) <doi:10.17487/RFC9106> or with the password-based key derivation function 2 ('PBKDF2') of Moriarty et al. (2017) <doi:10.17487/RFC8018>. A whole directory can be sealed under one signature and later verified offline; a 'Merkle' tree proof shows chosen files to someone without revealing the others, and signed statements rotate or revoke a sealing key. A snapshot of the machine the results were made on (its operating system, packages and settings) can be sealed with them and compared with the machine that checks them. Tables can be pinned to a schema and to summaries that show later drift, and results wrapped in Dead Simple Signing Envelopes ('DSSE'). Messages can be signed and encrypted in the 'Cryptographic Message Syntax' ('CMS') and as Secure/Multipurpose Internet Mail Extensions ('S/MIME') mail with 'X.509' public-key certificates, the format of Cooper et al. (2008) <doi:10.17487/RFC5280>, or as 'OpenPGP' version 6 messages; a key store keeps and certifies other people's public keys, and keys held on a 'PKCS #11' token sign and open key encapsulations without leaving it. Data can be fetched over Hypertext Transfer Protocol Secure ('HTTPS') with the library's own client for Transport Layer Security ('TLS'), version 1.3 of Rescorla (2018) <doi:10.17487/RFC8446>, or version 1.2 of Dierks and Rescorla (2008) <doi:10.17487/RFC5246> for a server without 1.3, checked against the system's trust anchors. Keys and one-time values come from the operating system's random generator.

Last updated

4.65 score 15 scripts