public class CoxHelper
extends java.lang.Object
Constructor | Description |
---|---|
CoxHelper() |
Modifier and Type | Method | Description |
---|---|---|
static void |
main(java.lang.String[] args) |
|
static CoxInfo |
process(java.lang.String datafile,
java.lang.String timeColumn,
java.lang.String statusColumn,
java.lang.String weightColumn,
java.lang.String strataColumn,
java.lang.String clusterColumn,
java.util.ArrayList<java.lang.String> variables,
boolean useStrata,
boolean useWeights) |
|
static CoxInfo |
process(WorkSheet worksheet,
java.lang.String timeColumn,
java.lang.String statusColumn,
java.lang.String weightColumn,
java.lang.String strataColumn,
java.lang.String clusterColumn,
java.util.ArrayList<java.lang.String> variables,
boolean useStrata,
boolean useWeights) |
public static CoxInfo process(java.lang.String datafile, java.lang.String timeColumn, java.lang.String statusColumn, java.lang.String weightColumn, java.lang.String strataColumn, java.lang.String clusterColumn, java.util.ArrayList<java.lang.String> variables, boolean useStrata, boolean useWeights) throws java.lang.Exception
datafile
- The tab delimited file containing survival data and variables. The first column needs to be unique indextimeColumn
- The column representing the event/censor timestatusColumn
- The column representing an event=1 and censor=0weightColumn
- For case-cohort data sets may require weighting to reflect the entire cohortstrataColumn
- A column representing strata dataclusterColumn
- If robost variation calculation is required the cluster column will group samples by the value in this columnvariables
- The variables to be used in the cox regression analysis. For Interactions using variable1:variable2useStrata
- Boolean to indicate if strata column should be useduseWeights
- Boolean to indicate if weight column should be usedjava.lang.Exception
public static CoxInfo process(WorkSheet worksheet, java.lang.String timeColumn, java.lang.String statusColumn, java.lang.String weightColumn, java.lang.String strataColumn, java.lang.String clusterColumn, java.util.ArrayList<java.lang.String> variables, boolean useStrata, boolean useWeights)
worksheet
- timeColumn
- The column representing the event/censor timestatusColumn
- The column representing an event=1 and censor=0weightColumn
- For case-cohort data sets may require weighting to reflect the entire cohortstrataColumn
- A column representing strata dataclusterColumn
- If robost variation calculation is required the cluster column will group samples by the value in this columnvariables
- The variables to be used in the cox regression analysis. For Interactions using variable1:variable2useStrata
- Boolean to indicate if strata column should be useduseWeights
- Boolean to indicate if weight column should be usedpublic static void main(java.lang.String[] args)
args
- the command line arguments