Coder Social home page Coder Social logo

ruby-simple_statistics's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

seigel

ruby-simple_statistics's Issues

Trouble Comparing to KM calculated in this paper

I am trying to figure out how to properly create a survival curve for brain tumour patients. I was referring to this paper (https://statsdirect.com/help/survival_analysis/kaplan.htm) to educate my self. I don't get the same values for the probability as you do. This is probably trivial, but it would help me a lot if you could help me understand they why :)

I used the values for the Group: 1 (Group Surv = 2) in the first able as shown below.

require 'sstat'
sstat_survival = SStat::Surv.new

time =     [142, 157, 163, 198, 204, 205, 232, 232, 232, 233, 233, 233, 233, 239, 240, 261, 280, 280, 295, 295, 323, 344]
censored = [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]
sstat_survival.kaplan_meier(time, censored)
sstat_survival.kaplan_meier_3p_extraploation(time, censored)

Thank you!

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.