GithubHelp home page GithubHelp logo

sdchistograms's Introduction

Statistical Disclosure Control Histograms

Histograms compatible with Statistical Disclosure Control (SDC) guidance

These are simple Stata programs for producing histograms in conformance with SDC guidance (see Handbook on SDC.pdf)

binsafe plots a histogram of the distribution of a variable constructed so that each bar represents the same fraction of the data (constant area histogram). No fraction contains fewer than 10 observations to accord with SDC guidance [1]. If all bin areas are >10 then the bin number is assigned using Sturges' rule [2].

histsdc plots a frequency histogram that is compatible with Statistical Disclosure Control (SDC) guidance by replacing any value less than 10 with the value 10. A note is added to the histogram to this effect.

To use these just copy the ado file and its associated sthlp file into your personal directory.

Authors

Alun Hughes (Twitter: @alundhughes30; Github: https://github.com/adh30)

Acknowledgments

binsafe draws extensively on eqprhistogram by Nick Cox ([email protected])

References

  1. Emily Griffiths et al. (2019) Handbook on Statistical Disclosure Control for Outputs. The Safe Data Access Professionals Working Group.
  2. Herbert A. Sturges. (1926). The choice of a class interval. Journal of the American Statistical Association. 21 (153): 65โ€“66. doi:10.1080/01621459.1926.10502161

sdchistograms's People

Contributors

adh30 avatar

Stargazers

 avatar

Watchers

 avatar

sdchistograms's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.