Class StrataInfo


  • public class StrataInfo
    extends java.lang.Object
    Information needed to represent a survival curve
    Author:
    Scooter Willis
    • Constructor Summary

      Constructors 
      Constructor Description
      StrataInfo()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String f​(java.lang.Double d)  
      java.util.ArrayList<java.lang.Double> getLower()  
      java.util.ArrayList<java.lang.Double> getNcens()  
      java.util.LinkedHashMap<java.lang.Double,​java.lang.Integer> getNdead()  
      java.lang.Double getNearestAtRisk​(double t)
      Selection of number of risk will depend on the precision and rounding of time in the survival table.
      java.lang.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
      java.util.ArrayList<java.lang.Double> getNevent()  
      java.util.ArrayList<java.lang.Double> getNrisk()  
      java.util.ArrayList<java.lang.Integer> getStatus()  
      java.util.ArrayList<java.lang.Double> getStderr()  
      java.util.ArrayList<java.lang.Double> getStdlow()  
      java.util.ArrayList<java.lang.Double> getSurv()  
      java.util.ArrayList<java.lang.Double> getTime()  
      java.util.ArrayList<java.lang.Double> getUpper()  
      java.util.ArrayList<java.lang.Double> getVarhaz()  
      java.util.ArrayList<java.lang.Double> getWeight()  
      void setStdlow​(java.util.ArrayList<java.lang.Double> stdlow)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • StrataInfo

        public StrataInfo()
    • Method Detail

      • getNearestTime

        public java.lang.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 java.lang.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 java.lang.String f​(java.lang.Double d)
        Parameters:
        d -
        Returns:
      • toString

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

        public java.util.ArrayList<java.lang.Double> getTime()
        Returns:
        the time
      • getSurv

        public java.util.ArrayList<java.lang.Double> getSurv()
        Returns:
        the surv
      • getStderr

        public java.util.ArrayList<java.lang.Double> getStderr()
        Returns:
        the stderr
      • getUpper

        public java.util.ArrayList<java.lang.Double> getUpper()
        Returns:
        the upper
      • getLower

        public java.util.ArrayList<java.lang.Double> getLower()
        Returns:
        the lower
      • getStatus

        public java.util.ArrayList<java.lang.Integer> getStatus()
        Returns:
        the status
      • getNevent

        public java.util.ArrayList<java.lang.Double> getNevent()
        Returns:
        the nevent
      • getNcens

        public java.util.ArrayList<java.lang.Double> getNcens()
        Returns:
        the ncens
      • getNrisk

        public java.util.ArrayList<java.lang.Double> getNrisk()
        Returns:
        the nrisk
      • getWeight

        public java.util.ArrayList<java.lang.Double> getWeight()
        Returns:
        the weight
      • getNdead

        public java.util.LinkedHashMap<java.lang.Double,​java.lang.Integer> getNdead()
        Returns:
        the ndead
      • getVarhaz

        public java.util.ArrayList<java.lang.Double> getVarhaz()
        Returns:
        the varhaz
      • getStdlow

        public java.util.ArrayList<java.lang.Double> getStdlow()
        Returns:
        the stdlow
      • setStdlow

        public void setStdlow​(java.util.ArrayList<java.lang.Double> stdlow)
        Parameters:
        stdlow - the stdlow to set