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

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

public class Data
extends java.lang.Object


Field Summary
static java.lang.String DEPENDENT_VAR
           
static java.lang.String INDEPENDENT_VAR
           
 
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)
           
 double[] getDoubleX(java.lang.String name)
           
 double[] getDoubleY(java.lang.String name)
           
 java.lang.Object getInput(short analysisType, java.lang.String parameterName)
           
 java.util.HashMap<java.lang.String,java.lang.Object> getMapX()
           
 java.util.HashMap<java.lang.String,java.lang.Object> 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)
           
 java.lang.Object getParameter(short analysisType, java.lang.String parameterName)
           
 int getSampleSize()
           
 double getSignificanceLevel()
           
 java.util.TreeMap<java.lang.String,java.lang.Object> getStorage()
           
 SurvivalResult getSurvivalResult(double[] time, byte[] censor, java.lang.String[] groupNames)
           
 java.lang.Object getTreeObjectX(java.lang.String name)
           
 java.lang.Object getTreeObjectY(java.lang.String name)
           
 java.util.TreeMap<java.lang.String,java.lang.Object> getTreeX()
           
 java.util.TreeMap<java.lang.String,java.lang.Object> getTreeY()
           
 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)
           
 void setInput(short analysisType, java.lang.String parameterName, java.lang.Object parameterValue)
           
 void setParameter(short analysisType, java.lang.String parameterName, java.lang.Object parameterValue)
           
 
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
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)

getMapX

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

getMapY

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

getTreeX

public java.util.TreeMap<java.lang.String,java.lang.Object> getTreeX()

getTreeY

public java.util.TreeMap<java.lang.String,java.lang.Object> getTreeY()

getX

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

getY

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

getTreeObjectX

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

getTreeObjectY

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

getSampleSize

public int getSampleSize()

getDoubleX

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

getDoubleY

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

getStorage

public java.util.TreeMap<java.lang.String,java.lang.Object> getStorage()

setParameter

public void setParameter(short analysisType,
                         java.lang.String parameterName,
                         java.lang.Object parameterValue)

setInput

public void setInput(short analysisType,
                     java.lang.String parameterName,
                     java.lang.Object parameterValue)

getParameter

public java.lang.Object getParameter(short analysisType,
                                     java.lang.String parameterName)

getInput

public java.lang.Object getInput(short analysisType,
                                 java.lang.String parameterName)

getAnalysis

public Result getAnalysis(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)