Class SurvFitKM


  • public class SurvFitKM
    extends java.lang.Object
    Ported from survfitKM.S When combining multiple entries with same time not sure how the weighting adds up
    Author:
    Scooter Willis
    • Constructor Detail

      • SurvFitKM

        public SurvFitKM()
    • Method Detail

      • process

        public SurvFitInfo process​(java.util.LinkedHashMap<java.lang.String,​java.util.ArrayList<CensorStatus>> survivalData,
                                   boolean useWeights)
                            throws java.lang.Exception
        Parameters:
        survivalData -
        useWeights -
        Returns:
        Throws:
        java.lang.Exception
      • process

        public SurvFitInfo process​(java.lang.String datafile,
                                   java.lang.String timeColumn,
                                   java.lang.String statusColumn,
                                   java.lang.String weightColumn,
                                   java.lang.String variableColumn,
                                   boolean useWeights)
                            throws java.lang.Exception
        Parameters:
        datafile -
        timeColumn -
        statusColumn -
        weightColumn -
        variableColumn -
        useWeights -
        Returns:
        Throws:
        java.lang.Exception
      • process

        public SurvFitInfo process​(java.lang.String variable,
                                   java.util.ArrayList<SurvivalInfo> dataT,
                                   boolean useWeighted)
                            throws java.lang.Exception
        Parameters:
        variable -
        dataT -
        useWeighted -
        Returns:
        Throws:
        java.lang.Exception
      • processStrataInfo

        public java.util.LinkedHashMap<java.lang.String,​StrataInfo> processStrataInfo​(java.lang.String variable,
                                                                                            java.util.ArrayList<SurvivalInfo> dataT,
                                                                                            SurvFitKM.Method method,
                                                                                            SurvFitKM.Error error,
                                                                                            boolean seFit,
                                                                                            double confInt,
                                                                                            SurvFitKM.ConfType confType,
                                                                                            SurvFitKM.ConfLower confLower,
                                                                                            java.lang.Double startTime,
                                                                                            java.lang.Double newTime,
                                                                                            boolean useWeighted)
                                                                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • process

        public SurvFitInfo process​(java.lang.String variable,
                                   java.util.ArrayList<SurvivalInfo> dataT,
                                   SurvFitKM.Method method,
                                   SurvFitKM.Error error,
                                   boolean seFit,
                                   double confInt,
                                   SurvFitKM.ConfType confType,
                                   SurvFitKM.ConfLower confLower,
                                   java.lang.Double startTime,
                                   java.lang.Double newTime,
                                   boolean useWeighted)
                            throws java.lang.Exception
        Parameters:
        variable -
        dataT -
        method -
        error -
        seFit -
        confInt -
        confType -
        confLower -
        startTime -
        newTime -
        useWeighted -
        Returns:
        Throws:
        java.lang.Exception
      • main

        public static void main​(java.lang.String[] args)
        Parameters:
        args - the command line arguments