closure-core

Crates.ioclosure-core
lib.rsclosure-core
version1.0.0
created_at2024-11-16 13:34:22.466097+00
updated_at2025-06-01 15:47:58.298564+00
descriptionCLOSURE: complete listing of original samples of underlying raw evidence
homepage
repositoryhttps://github.com/lhdjung/closure-core
max_upload_size
id1450385
size28,417
Lukas Jung (lhdjung)

documentation

README

CLOSURE: complete listing of original samples of underlying raw evidence

Implements the novel CLOSURE technique for efficiently reconstructing all possible distributions of raw data from summary statistics. It is not about the Rust feature called closure.

The crate is mostly meant to serve as a backend for the R package unsum.

You will likely only need dfs_parallel().

Most of the code was written by Claude 3.5, translating Python code by Nathanael Larigaldie.

Example

Enter summary data reported in a paper and call dfs_parallel().

let mean = 5.0;
let sd = 2.78;
let n = 30;
let scale_min = 1;
let scale_max = 7;
let rounding_error_mean = 0.005;
let rounding_error_sd = 0.005;

dfs_parallel(
    mean,
    sd,
    n,
    scale_min,
    scale_max,
    rounding_error_mean,
    rounding_error_sd,
)

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Commit count: 64

cargo fmt