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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dump()
static String
Pad left a string with spacesdouble
getCoefficient
(String name) getCoefficientText
(boolean header, String beginLine, String beginCell, String endCell, String endLine) double
double[][]
getImat()
double[][]
double[][]
int
double
double[][]
double[][]
double[]
void
setCoefficient
(String name, CoxCoefficient coefficient) void
setDegreeFreedom
(double degreeFreedom) void
setMetaDataFilter
(LinkedHashMap<String, String> metaDataFilter) void
setNaiveVariance
(double[][] var) void
void
setRscoreLogrankTestpvalue
(Double rscoreLogrankTestpvalue) void
setScoreLogrankTest
(Double scoreLogrankTest) void
setScoreLogrankTestpvalue
(Double scoreLogrankTestpvalue) void
void
setVariableResiduals
(double[][] rr) void
setVariance
(double[][] var) void
setWaldTestInfo
(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
-