GithubHelp home page GithubHelp logo

Comments (1)

chrismainey avatar chrismainey commented on June 29, 2024

Sorry for the delayed reply. I thought I'd be notified of issues posted, but seems I've not got that set up right.

You're describing the winsorisation correctly, but there are two methods of outlier adjustment available in the plot. The 'CQC' method is the one you are describing, which uses a square-root transformation and the winsorisation you describe, that's dealt with a bit earlier in the function:

https://github.com/chrismainey/FunnelPlotR/blob/c9029f5906594f5310ca21f59a29a596e5857369/R/OD_adjust_func.R#L48-L53

The second method uses a natural log-transformation and truncates rather than winsorises (based on the methods in https://digital.nhs.uk/SHMI .

https://github.com/chrismainey/FunnelPlotR/blob/c9029f5906594f5310ca21f59a29a596e5857369/R/OD_adjust_func.R#L123-L128

You can switch between them with the 'method' argument, but the default is 'SHMI'. I've found that, with highly overdispersed data, the winsorization and truncation method can lead to limits that are a bit erratic, so that's why it's not the default.

Let me know if you think it needs more descriptions in the support material though (or alter it yourself and send a pull request if you like). Hope that helps.

from funnelplotr.

Related Issues (20)

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.