Package org.biojava.nbio.survival.cox
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 Summary
Constructors Constructor Description StrataInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
f(Double d)
ArrayList<Double>
getLower()
ArrayList<Double>
getNcens()
LinkedHashMap<Double,Integer>
getNdead()
Double
getNearestAtRisk(double t)
Selection of number of risk will depend on the precision and rounding of time in the survival table.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 timeArrayList<Double>
getNevent()
ArrayList<Double>
getNrisk()
ArrayList<Integer>
getStatus()
ArrayList<Double>
getStderr()
ArrayList<Double>
getStdlow()
ArrayList<Double>
getSurv()
ArrayList<Double>
getTime()
ArrayList<Double>
getUpper()
ArrayList<Double>
getVarhaz()
ArrayList<Double>
getWeight()
void
setStdlow(ArrayList<Double> stdlow)
String
toString()
-
-
-
Constructor Detail
-
StrataInfo
public StrataInfo()
-
-
Method Detail
-
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:
-
getNdead
public LinkedHashMap<Double,Integer> getNdead()
- Returns:
- the ndead
-
-