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
public double[][] getVariance()- Returns:
 
 - 
setNaiveVariance
- Parameters:
 var-- Throws:
 Exception
 - 
getNaiveVariance
public double[][] getNaiveVariance()- Returns:
 
 - 
setSurvivalInfoList
- Parameters:
 data-
 - 
getWeighted
public double[] getWeighted()- Returns:
 
 - 
getVariableResiduals
public double[][] getVariableResiduals()- Returns:
 
 - 
setVariableResiduals
public void setVariableResiduals(double[][] rr) - Parameters:
 rr-
 - 
getNumberCoefficients
public int 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
public void 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
public double getChiSquare()- Returns:
 - the scoreLogrankTest
 
 - 
getDegreeFreedom
public double getDegreeFreedom()- Returns:
 - the degreeFreedom
 
 - 
getOverallModelFitPvalue
public double 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
public double[][] getImat()- Returns:
 - the imat
 
 - 
getNaive_imat
public double[][] getNaive_imat()- Returns:
 - the naive_imat
 
 - 
setDegreeFreedom
public void setDegreeFreedom(double degreeFreedom) - Parameters:
 degreeFreedom- the degreeFreedom to set
 - 
setWaldTestInfo
- Parameters:
 waldTestInfo- the waldTestInfo to set
 
 -