Package org.biojava.nbio.survival.cox
Class StrataInfo
java.lang.Object
org.biojava.nbio.survival.cox.StrataInfo
Information needed to represent a survival curve
- Author:
- Scooter Willis
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetLower()
getNcens()
getNdead()
getNearestAtRisk
(double t) Selection of number of risk will depend on the precision and rounding of time in the survival table.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 timegetNrisk()
getSurv()
getTime()
getUpper()
void
toString()
-
Constructor Details
-
StrataInfo
public StrataInfo()
-
-
Method Details
-
getNearestTime
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
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
- Parameters:
d
-- Returns:
-
toString
-
getTime
- Returns:
- the time
-
getSurv
- Returns:
- the surv
-
getStderr
- Returns:
- the stderr
-
getUpper
- Returns:
- the upper
-
getLower
- Returns:
- the lower
-
getStatus
- Returns:
- the status
-
getNevent
- Returns:
- the nevent
-
getNcens
- Returns:
- the ncens
-
getNrisk
- Returns:
- the nrisk
-
getWeight
- Returns:
- the weight
-
getNdead
- Returns:
- the ndead
-
getVarhaz
- Returns:
- the varhaz
-
getStdlow
- Returns:
- the stdlow
-
setStdlow
- Parameters:
stdlow
- the stdlow to set
-