Class StrataInfo

java.lang.Object
org.biojava.nbio.survival.cox.StrataInfo

public class StrataInfo extends Object
Information needed to represent a survival curve
Author:
Scooter Willis
  • Constructor Details

    • StrataInfo

      public StrataInfo()
  • Method Details

    • getNearestTime

      public Double getNearestTime(double timePercentage)
      Need to find the actual time for the nearest time represented as a percentage Would be used to then look up the number at risk at that particular time
      Parameters:
      timePercentage -
      Returns:
    • getNearestAtRisk

      public Double getNearestAtRisk(double t)
      Selection of number of risk will depend on the precision and rounding of time in the survival table. If you are asking for 12 and entry exists for 11.9999999 then 12 is greater than 11.99999 unless you round.
      Parameters:
      t -
      Returns:
    • f

      public String f(Double d)
      Parameters:
      d -
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getTime

      public ArrayList<Double> getTime()
      Returns:
      the time
    • getSurv

      public ArrayList<Double> getSurv()
      Returns:
      the surv
    • getStderr

      public ArrayList<Double> getStderr()
      Returns:
      the stderr
    • getUpper

      public ArrayList<Double> getUpper()
      Returns:
      the upper
    • getLower

      public ArrayList<Double> getLower()
      Returns:
      the lower
    • getStatus

      public ArrayList<Integer> getStatus()
      Returns:
      the status
    • getNevent

      public ArrayList<Double> getNevent()
      Returns:
      the nevent
    • getNcens

      public ArrayList<Double> getNcens()
      Returns:
      the ncens
    • getNrisk

      public ArrayList<Double> getNrisk()
      Returns:
      the nrisk
    • getWeight

      public ArrayList<Double> getWeight()
      Returns:
      the weight
    • getNdead

      public LinkedHashMap<Double,Integer> getNdead()
      Returns:
      the ndead
    • getVarhaz

      public ArrayList<Double> getVarhaz()
      Returns:
      the varhaz
    • getStdlow

      public ArrayList<Double> getStdlow()
      Returns:
      the stdlow
    • setStdlow

      public void setStdlow(ArrayList<Double> stdlow)
      Parameters:
      stdlow - the stdlow to set