public class SurvivalInfoHelper extends Object
Constructor and Description |
---|
SurvivalInfoHelper() |
Modifier and Type | Method and Description |
---|---|
static ArrayList<String> |
addInteraction(String variable1,
String variable2,
ArrayList<SurvivalInfo> survivalInfoList)
To test for interactions use two variables and create a third variable where the two are multiplied together.
|
static void |
categorizeData(ArrayList<SurvivalInfo> DataT)
Take a collection of categorical data and convert it to numeric to be used in cox calculations
|
static void |
dump(ArrayList<SurvivalInfo> DataT,
PrintStream ps,
String delimiter)
For each analysis this allows outputing of the data used in the calculations to a printstream/file.
|
static ArrayList<String> |
getGroupCategories(String groupName,
ArrayList<SurvivalInfo> survivalInfoList) |
static void |
groupByRange(double[] range,
String variable,
String groupName,
ArrayList<SurvivalInfo> survivalInfoList)
Need to allow a range of values similar to cut in R and a continuous c
|
public static void dump(ArrayList<SurvivalInfo> DataT, PrintStream ps, String delimiter)
DataT
- ps
- delimiter
- public static void categorizeData(ArrayList<SurvivalInfo> DataT)
DataT
- public static ArrayList<String> addInteraction(String variable1, String variable2, ArrayList<SurvivalInfo> survivalInfoList)
variable1
- variable2
- survivalInfoList
- public static void groupByRange(double[] range, String variable, String groupName, ArrayList<SurvivalInfo> survivalInfoList) throws Exception
range
- variable
- groupName
- survivalInfoList
- Exception
public static ArrayList<String> getGroupCategories(String groupName, ArrayList<SurvivalInfo> survivalInfoList)
groupName
- survivalInfoList
- Copyright © 2000–2016 BioJava. All rights reserved.