edu.ucla.stat.SOCR.analyses.jri.data
Class Data

java.lang.Object
  extended by edu.ucla.stat.SOCR.analyses.jri.data.Data

public class Data
extends java.lang.Object


Field Summary
static java.lang.String DEPENDENT_VAR
           
static java.lang.String INDEPENDENT_VAR
           
static java.lang.String SIGNIFICANCE_LEVEL
           
 
Constructor Summary
Data()
          NOTE: ALL THE QUANTITATIVE DATA ARE FORCED TO CHANGE TO THE FORM OF double[].
 
Method Summary
 void addPredictor(double[] data, java.lang.String dataType)
           
 void addPredictor(float[] data, java.lang.String dataType)
           
 void addPredictor(int[] data, java.lang.String dataType)
          appendX with two parameters
 void addPredictor(long[] data, java.lang.String dataType)
           
 void addPredictor(java.lang.String[] data, java.lang.String dataType)
           
 void addPredictor(java.lang.String name, double[] data, java.lang.String dataType)
           
 void addPredictor(java.lang.String name, java.lang.Object[] data, java.lang.String dataType)
           
 void addPredictor(java.lang.String name, java.lang.String[] data, java.lang.String dataType)
          appendY with three parameters
 void addResponse(double[] data, java.lang.String dataType)
           
 void addResponse(float[] data, java.lang.String dataType)
           
 void addResponse(int[] data, java.lang.String dataType)
          appendY with two parameters
 void addResponse(long[] data, java.lang.String dataType)
           
 void addResponse(java.lang.String[] data, java.lang.String dataType)
           
 void addResponse(java.lang.String name, double[] data, java.lang.String dataType)
           
 void addResponse(java.lang.String name, java.lang.Object[] data, java.lang.String dataType)
           
 void addResponse(java.lang.String name, java.lang.String[] data, java.lang.String dataType)
           
 void addSignificanceLevel(double input)
           
 void appendX(double[] data, java.lang.String dataType)
           
 void appendX(float[] data, java.lang.String dataType)
           
 void appendX(int[] data, java.lang.String dataType)
           
 void appendX(long[] data, java.lang.String dataType)
           
 void appendX(java.lang.String[] data, java.lang.String dataType)
           
 void appendX(java.lang.String name, double[] data, java.lang.String dataType)
           
 void appendX(java.lang.String name, java.lang.Object[] data, java.lang.String dataType)
           
 void appendX(java.lang.String name, java.lang.String[] data, java.lang.String dataType)
           
 void appendY(double[] data, java.lang.String dataType)
           
 void appendY(float[] data, java.lang.String dataType)
           
 void appendY(int[] data, java.lang.String dataType)
           
 void appendY(long[] data, java.lang.String dataType)
           
 void appendY(java.lang.String[] data, java.lang.String dataType)
           
 void appendY(java.lang.String name, double[] data, java.lang.String dataType)
           
 void appendY(java.lang.String name, java.lang.Object[] data, java.lang.String dataType)
           
 void appendY(java.lang.String name, java.lang.String[] data, java.lang.String dataType)
           
 Result getAnalysis(short analysisType)
           
 java.lang.String getAnalysisXMLInputString(short analysisType)
           
 double[] getDoubleX(java.lang.String name)
           
 double[] getDoubleY(java.lang.String name)
           
 java.util.HashMap<java.lang.String,Column> getMapX()
           
 java.util.HashMap<java.lang.String,Column> getMapY()
           
 NormalPowerResult getNormalAnalysis(double mu0, double x, double sigma)
           
 NormalPowerResult getNormalPower(int sampleSize, double sigma, double alpha, double mu0, double muA, java.lang.String hypothesisType)
           
 NormalPowerResult getNormalPowerSampleSize(double power, double sigma, double alpha, double mu0, double muA, java.lang.String hypothesisType)
           
 int getSampleSize()
           
 double getSignificanceLevel()
           
 SurvivalResult getSurvivalResult(double[] time, byte[] censor, java.lang.String[] groupNames)
           
 java.lang.Object getX(java.lang.String name)
           
 java.lang.Object getY(java.lang.String name)
           
static void main(java.lang.String[] args)
           
 AnovaOneWayResult modelAnovaOneWay()
           
 AnovaTwoWayResult modelAnovaTwoWay()
           
 MultiLinearRegressionResult modelMultiLinearRegression()
           
 OneTResult modelOneT(double[] y)
           
 SimpleLinearRegressionResult modelSimpleLinearRegression()
          Linear Models
 TwoIndependentTResult modelTwoIndependentT(double[] x, double[] y)
          Parametric Testing
 TwoIndependentWilcoxonResult modelTwoIndependentWilcoxon(double[] x, double[] y)
          Non-Parametric Testing
 TwoPairedSignedRankResult modelTwoPairedSignedRank(double[] x, double[] y)
           
 TwoPairedTResult modelTwoPairedT(double[] x, double[] y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INDEPENDENT_VAR

public static final java.lang.String INDEPENDENT_VAR
See Also:
Constant Field Values

DEPENDENT_VAR

public static final java.lang.String DEPENDENT_VAR
See Also:
Constant Field Values

SIGNIFICANCE_LEVEL

public static final java.lang.String SIGNIFICANCE_LEVEL
See Also:
Constant Field Values
Constructor Detail

Data

public Data()
NOTE: ALL THE QUANTITATIVE DATA ARE FORCED TO CHANGE TO THE FORM OF double[]. ALL THE FACTOR/QUALITATIVE DATA ARE FORCED TO CHANGE TO THE FORM OF String[].

Method Detail

addPredictor

public void addPredictor(int[] data,
                         java.lang.String dataType)
appendX with two parameters


addPredictor

public void addPredictor(long[] data,
                         java.lang.String dataType)

addPredictor

public void addPredictor(float[] data,
                         java.lang.String dataType)

addPredictor

public void addPredictor(double[] data,
                         java.lang.String dataType)

addPredictor

public void addPredictor(java.lang.String[] data,
                         java.lang.String dataType)

appendX

public void appendX(int[] data,
                    java.lang.String dataType)

appendX

public void appendX(long[] data,
                    java.lang.String dataType)

appendX

public void appendX(float[] data,
                    java.lang.String dataType)

addSignificanceLevel

public void addSignificanceLevel(double input)

getSignificanceLevel

public double getSignificanceLevel()

appendX

public void appendX(double[] data,
                    java.lang.String dataType)

appendX

public void appendX(java.lang.String[] data,
                    java.lang.String dataType)

addResponse

public void addResponse(int[] data,
                        java.lang.String dataType)
appendY with two parameters


addResponse

public void addResponse(long[] data,
                        java.lang.String dataType)

addResponse

public void addResponse(float[] data,
                        java.lang.String dataType)

addResponse

public void addResponse(double[] data,
                        java.lang.String dataType)

addResponse

public void addResponse(java.lang.String[] data,
                        java.lang.String dataType)

appendY

public void appendY(int[] data,
                    java.lang.String dataType)

appendY

public void appendY(long[] data,
                    java.lang.String dataType)

appendY

public void appendY(float[] data,
                    java.lang.String dataType)

appendY

public void appendY(double[] data,
                    java.lang.String dataType)

appendY

public void appendY(java.lang.String[] data,
                    java.lang.String dataType)

addPredictor

public void addPredictor(java.lang.String name,
                         java.lang.String[] data,
                         java.lang.String dataType)
appendY with three parameters


addPredictor

public void addPredictor(java.lang.String name,
                         double[] data,
                         java.lang.String dataType)

addPredictor

public void addPredictor(java.lang.String name,
                         java.lang.Object[] data,
                         java.lang.String dataType)

appendX

public void appendX(java.lang.String name,
                    java.lang.String[] data,
                    java.lang.String dataType)

appendX

public void appendX(java.lang.String name,
                    double[] data,
                    java.lang.String dataType)

appendX

public void appendX(java.lang.String name,
                    java.lang.Object[] data,
                    java.lang.String dataType)

addResponse

public void addResponse(java.lang.String name,
                        java.lang.String[] data,
                        java.lang.String dataType)

addResponse

public void addResponse(java.lang.String name,
                        double[] data,
                        java.lang.String dataType)

addResponse

public void addResponse(java.lang.String name,
                        java.lang.Object[] data,
                        java.lang.String dataType)

appendY

public void appendY(java.lang.String name,
                    java.lang.String[] data,
                    java.lang.String dataType)

appendY

public void appendY(java.lang.String name,
                    double[] data,
                    java.lang.String dataType)

appendY

public void appendY(java.lang.String name,
                    java.lang.Object[] data,
                    java.lang.String dataType)

getX

public java.lang.Object getX(java.lang.String name)

getY

public java.lang.Object getY(java.lang.String name)

getSampleSize

public int getSampleSize()

getDoubleX

public double[] getDoubleX(java.lang.String name)

getDoubleY

public double[] getDoubleY(java.lang.String name)

getMapX

public java.util.HashMap<java.lang.String,Column> getMapX()

getMapY

public java.util.HashMap<java.lang.String,Column> getMapY()

getAnalysis

public Result getAnalysis(short analysisType)
                   throws java.lang.Exception
Throws:
java.lang.Exception

getAnalysisXMLInputString

public java.lang.String getAnalysisXMLInputString(short analysisType)
                                           throws java.lang.Exception
Throws:
java.lang.Exception

modelSimpleLinearRegression

public SimpleLinearRegressionResult modelSimpleLinearRegression()
                                                         throws java.lang.Exception
Linear Models

Throws:
java.lang.Exception

modelMultiLinearRegression

public MultiLinearRegressionResult modelMultiLinearRegression()
                                                       throws java.lang.Exception
Throws:
java.lang.Exception

modelAnovaOneWay

public AnovaOneWayResult modelAnovaOneWay()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

modelAnovaTwoWay

public AnovaTwoWayResult modelAnovaTwoWay()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

modelTwoIndependentT

public TwoIndependentTResult modelTwoIndependentT(double[] x,
                                                  double[] y)
                                           throws java.lang.Exception
Parametric Testing

Throws:
java.lang.Exception

modelTwoPairedT

public TwoPairedTResult modelTwoPairedT(double[] x,
                                        double[] y)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

modelOneT

public OneTResult modelOneT(double[] y)
                     throws java.lang.Exception
Throws:
java.lang.Exception

modelTwoIndependentWilcoxon

public TwoIndependentWilcoxonResult modelTwoIndependentWilcoxon(double[] x,
                                                                double[] y)
                                                         throws java.lang.Exception
Non-Parametric Testing

Throws:
java.lang.Exception

modelTwoPairedSignedRank

public TwoPairedSignedRankResult modelTwoPairedSignedRank(double[] x,
                                                          double[] y)
                                                   throws java.lang.Exception
Throws:
java.lang.Exception

getNormalAnalysis

public NormalPowerResult getNormalAnalysis(double mu0,
                                           double x,
                                           double sigma)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

getNormalPower

public NormalPowerResult getNormalPower(int sampleSize,
                                        double sigma,
                                        double alpha,
                                        double mu0,
                                        double muA,
                                        java.lang.String hypothesisType)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

getNormalPowerSampleSize

public NormalPowerResult getNormalPowerSampleSize(double power,
                                                  double sigma,
                                                  double alpha,
                                                  double mu0,
                                                  double muA,
                                                  java.lang.String hypothesisType)
                                           throws java.lang.Exception
Throws:
java.lang.Exception

getSurvivalResult

public SurvivalResult getSurvivalResult(double[] time,
                                        byte[] censor,
                                        java.lang.String[] groupNames)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)