Skip to content

lhdjung/closure-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages