Package org.biojava.nbio.survival.cox
Class CoxInfo
java.lang.Object
org.biojava.nbio.survival.cox.CoxInfo
Holds the results of a cox analysis where calling dump(), toString() will give an output similar to R
- Author:
- Scooter Willis
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddump()static StringPad left a string with spacesdoublegetCoefficient(String name) getCoefficientText(boolean header, String beginLine, String beginCell, String endCell, String endLine) doubledouble[][]getImat()double[][]double[][]intdoubledouble[][]double[][]double[]voidsetCoefficient(String name, CoxCoefficient coefficient) voidsetDegreeFreedom(double degreeFreedom) voidsetMetaDataFilter(LinkedHashMap<String, String> metaDataFilter) voidsetNaiveVariance(double[][] var) voidvoidsetRscoreLogrankTestpvalue(Double rscoreLogrankTestpvalue) voidsetScoreLogrankTest(Double scoreLogrankTest) voidsetScoreLogrankTestpvalue(Double scoreLogrankTestpvalue) voidvoidsetVariableResiduals(double[][] rr) voidsetVariance(double[][] var) voidsetWaldTestInfo(WaldTestInfo waldTestInfo) toString()
-
Field Details
-
kmf
-
ef
-
-
Constructor Details
-
CoxInfo
public CoxInfo()
-
-
Method Details
-
getSurvivalInfoList
- Returns:
-
setVariance
- Parameters:
var-- Throws:
Exception
-
getVariance
- Returns:
-
setNaiveVariance
- Parameters:
var-- Throws:
Exception
-
getNaiveVariance
- Returns:
-
setSurvivalInfoList
- Parameters:
data-
-
getWeighted
- Returns:
-
getVariableResiduals
- Returns:
-
setVariableResiduals
- Parameters:
rr-
-
getNumberCoefficients
- Returns:
-
getCoefficient
- Parameters:
name-- Returns:
-
setCoefficient
- Parameters:
name-coefficient-
-
getCoefficientText
public String getCoefficientText(boolean header, String beginLine, String beginCell, String endCell, String endLine) - Parameters:
header-beginLine-beginCell-endCell-endLine-- Returns:
-
fmt
- Parameters:
d-precision-pad-- Returns:
-
dump
-
fmtpr
- Parameters:
d-pad-- Returns:
-
fmtpl
Pad left a string with spaces- Parameters:
d-pad-- Returns:
-
toString
-
toString
- Parameters:
beginLine-del-endLine-- Returns:
-
getChiSquare
- Returns:
- the scoreLogrankTest
-
getDegreeFreedom
- Returns:
- the degreeFreedom
-
getOverallModelFitPvalue
- Returns:
- the scoreLogrankTestpvalue
-
getRscore
- Returns:
- the rscore
-
setRscore
- Parameters:
rscore- the rscore to set
-
getRscoreLogrankTestpvalue
- Returns:
- the rscoreLogrankTestpvalue
-
setRscoreLogrankTestpvalue
- Parameters:
rscoreLogrankTestpvalue- the rscoreLogrankTestpvalue to set
-
getScoreLogrankTest
- Returns:
- the scoreLogrankTest
-
setScoreLogrankTest
- Parameters:
scoreLogrankTest- the scoreLogrankTest to set
-
getScoreLogrankTestpvalue
- Returns:
- the scoreLogrankTestpvalue
-
setScoreLogrankTestpvalue
- Parameters:
scoreLogrankTestpvalue- the scoreLogrankTestpvalue to set
-
getMetaDataFilter
- Returns:
- the metaDataFilter
-
setMetaDataFilter
- Parameters:
metaDataFilter- the metaDataFilter to set
-
getCoefficientsList
- Returns:
- the coefficientsList
-
getWaldTestInfo
- Returns:
- the waldTestInfo
-
getImat
- Returns:
- the imat
-
getNaive_imat
- Returns:
- the naive_imat
-
setDegreeFreedom
- Parameters:
degreeFreedom- the degreeFreedom to set
-
setWaldTestInfo
- Parameters:
waldTestInfo- the waldTestInfo to set
-