Package org.biojava.nbio.survival.cox
Class CoxInfo
- java.lang.Object
-
- org.biojava.nbio.survival.cox.CoxInfo
-
-
Field Summary
Fields Modifier and Type Field Description ExpressionFigure
ef
KaplanMeierFigure
kmf
-
Constructor Summary
Constructors Constructor Description CoxInfo()
-
Method Summary
-
-
-
Field Detail
-
kmf
public KaplanMeierFigure kmf
-
ef
public ExpressionFigure ef
-
-
Constructor Detail
-
CoxInfo
public CoxInfo()
-
-
Method Detail
-
getSurvivalInfoList
public ArrayList<SurvivalInfo> getSurvivalInfoList()
- Returns:
-
setVariance
public void setVariance(double[][] var) throws Exception
- Parameters:
var
-- Throws:
Exception
-
getVariance
public double[][] getVariance()
- Returns:
-
setNaiveVariance
public void setNaiveVariance(double[][] var) throws Exception
- Parameters:
var
-- Throws:
Exception
-
getNaiveVariance
public double[][] getNaiveVariance()
- Returns:
-
setSurvivalInfoList
public void setSurvivalInfoList(ArrayList<SurvivalInfo> data)
- 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
public CoxCoefficient getCoefficient(String name)
- Parameters:
name
-- Returns:
-
setCoefficient
public void setCoefficient(String name, CoxCoefficient coefficient)
- 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
public static String fmt(Double d, int precision, int pad)
- Parameters:
d
-precision
-pad
-- Returns:
-
dump
public void dump()
-
fmtpl
public String fmtpl(String d, int pad)
Pad left a string with spaces- Parameters:
d
-pad
-- Returns:
-
toString
public String toString(String beginLine, String del, String endLine)
- 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
-
getRscoreLogrankTestpvalue
public Double getRscoreLogrankTestpvalue()
- Returns:
- the rscoreLogrankTestpvalue
-
setRscoreLogrankTestpvalue
public void setRscoreLogrankTestpvalue(Double rscoreLogrankTestpvalue)
- Parameters:
rscoreLogrankTestpvalue
- the rscoreLogrankTestpvalue to set
-
getScoreLogrankTest
public Double getScoreLogrankTest()
- Returns:
- the scoreLogrankTest
-
setScoreLogrankTest
public void setScoreLogrankTest(Double scoreLogrankTest)
- Parameters:
scoreLogrankTest
- the scoreLogrankTest to set
-
getScoreLogrankTestpvalue
public Double getScoreLogrankTestpvalue()
- Returns:
- the scoreLogrankTestpvalue
-
setScoreLogrankTestpvalue
public void setScoreLogrankTestpvalue(Double scoreLogrankTestpvalue)
- Parameters:
scoreLogrankTestpvalue
- the scoreLogrankTestpvalue to set
-
getMetaDataFilter
public LinkedHashMap<String,String> getMetaDataFilter()
- Returns:
- the metaDataFilter
-
setMetaDataFilter
public void setMetaDataFilter(LinkedHashMap<String,String> metaDataFilter)
- Parameters:
metaDataFilter
- the metaDataFilter to set
-
getCoefficientsList
public LinkedHashMap<String,CoxCoefficient> getCoefficientsList()
- Returns:
- the coefficientsList
-
getWaldTestInfo
public WaldTestInfo 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
public void setWaldTestInfo(WaldTestInfo waldTestInfo)
- Parameters:
waldTestInfo
- the waldTestInfo to set
-
-