JavaGrinders
Class Analyzer

java.lang.Object
  extended by JavaGrinders.Analyzer
Direct Known Subclasses:
CircularAnalyzer, ContingencyAnalyzer, GroupAnalyzer, ParametricAnalyzer, SpatialAnalyzer

public class Analyzer
extends java.lang.Object

Analyzer class - sets up a generic data analyzer, it does not do much aside from planting the general roots for analyzers


Field Summary
 java.text.DecimalFormat df
           
 
Constructor Summary
Analyzer(VariableOrganizer anOrganizer)
          Standard constructor using a VariableOrganizer
 
Method Summary
 void analyzeMultXY()
          coordinates analyses for multiple dependent on multiple independent variables
 void analyzeMultY()
          coordinates analyses for multiple dependent on multiple independent variables
 void analyzeXY()
          coordinates univariate analyses for dependent on independent variables
 void analyzeY()
          describes one or multiple Y columns
 void analyzeY(java.lang.Double hypMean)
          describes one or multiple Y columns
 void clearAllDesignRoles()
          clears all assigned design roles for the variables
 void controlAnalyze_1Y1X(Variable Y, Variable X)
          coordinates an analysis of dependent onto independent variable
 void controlAnalyze_1YnX(Variable Y, VariableOrganizer XOrganizer)
          coordinates an analysis of one dependent onto multiple independent variable.
 void controlAnalyze_nY(VariableOrganizer YOrganizer)
          coordinates an analysis of multiple dependent variable.
 void controlAnalyze_nY1X(VariableOrganizer YOrganizer, Variable X)
          coordinates an analysis of multiple dependent onto one independent variable.
 void controlAnalyze_nYnX(VariableOrganizer YOrganizer, VariableOrganizer XOrganizer)
          coordinates an analysis of multiple dependent onto multiple independent variable.
 void doAnalyze_1Y(Variable YVariable)
          lists the descriptive statistics results for a variables
 void doAnalyze_1Y(Variable YVariable, java.lang.Double hypMean)
          lists the results from a comparison with an a-priori mean
 void doAnalyze_1Y1X2Groups(Variable X, Variable Y)
          lists the results from an analysis of one dependent variable on one indepent variable (with 2 states).
 void doAnalyze_1Y1Xcontinuous(Variable X, Variable Y)
          lists the results from an analysis of one dependent variable on one continuous indepent variable.
 void doAnalyze_1Y1XnGroups(Variable X, Variable Y)
          lists the results from an analysis of one dependent variable on one indepent variable (with >2 states).
 void doAnalyze_1YnXcontinuous(Variable Y, VariableOrganizer XOrganizer)
          lists the results from an analysis of one dependent variable on multiple indepent variable.
 void doAnalyze_1YnXnGroups(Variable Y, VariableOrganizer XOrganizer)
          lists the results from an analysis of one dependent variable on multiple indepent variable.
 void doAnalyze_nY(VariableOrganizer YOrganizer)
          performs an analysis of multiple dependent variable.
 void doAnalyze_nY1Xcontinuous(VariableOrganizer YOrganizer, Variable X)
          lists the results from an analysis of one dependent continuous variable on multiple indepent variable.
 void doAnalyze_nY1XnGroups(VariableOrganizer YOrganizer, Variable X)
          lists the results from an analysis of one ordinal or nominal dependent variable on multiple indepent variable.
 void doAnalyze_nYnX(VariableOrganizer YOrganizer, VariableOrganizer XOrganizer)
          lists the results from an analysis of one dependent variable on multiple indepent variable.
 int getNXVariables()
          returns the number of independent variables in the Organizer
 int getNYVariables()
          returns the number of dependent variables in the Organizer
 VariableOrganizer getOrganizer()
          returns the VariableOrganizer instance
 Variable getXVariable()
          returns the independent variable of the Organizer
 Variable getYVariable()
          returns the dependent variable of the Organizer
 java.lang.String[] getYVariableNames()
          returns the matrix of all continuous, dependent variables.
 void listGroupDescriptives(Variable theXVariable, Variable theYVariable)
          lists the descriptive statistics for the groups identified by X
 void setOrganizer(VariableOrganizer anOrganizer)
          sets the VariableOrganizer instance to the one provided
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

df

public java.text.DecimalFormat df
Constructor Detail

Analyzer

public Analyzer(VariableOrganizer anOrganizer)
Standard constructor using a VariableOrganizer

Parameters:
anOrganizer - an instance of VariableOrganizer class coordinates a set of variables with respect to number of data points available and the rows that are currently selected
Method Detail

setOrganizer

public void setOrganizer(VariableOrganizer anOrganizer)
sets the VariableOrganizer instance to the one provided

Parameters:
anOrganizer - an instance of VariableOrganizer class coordinates a set of variables with respect to number of data points available and the rows that are currently selected

getOrganizer

public VariableOrganizer getOrganizer()
returns the VariableOrganizer instance


getNXVariables

public int getNXVariables()
returns the number of independent variables in the Organizer


getNYVariables

public int getNYVariables()
returns the number of dependent variables in the Organizer


getXVariable

public Variable getXVariable()
                      throws java.lang.Exception
returns the independent variable of the Organizer

Throws:
java.lang.Exception

getYVariable

public Variable getYVariable()
                      throws java.lang.Exception
returns the dependent variable of the Organizer

Throws:
java.lang.Exception

getYVariableNames

public java.lang.String[] getYVariableNames()
                                     throws java.lang.Exception
returns the matrix of all continuous, dependent variables. Matrix operations use the Java Matrix Package

Throws:
java.lang.Exception

clearAllDesignRoles

public void clearAllDesignRoles()
                         throws java.lang.Exception
clears all assigned design roles for the variables

Throws:
java.lang.Exception

analyzeY

public void analyzeY()
              throws java.lang.Exception
describes one or multiple Y columns

Throws:
java.lang.Exception

analyzeY

public void analyzeY(java.lang.Double hypMean)
              throws java.lang.Exception
describes one or multiple Y columns

Parameters:
hypMean - the mean value of the a-priori hypothesis
Throws:
java.lang.Exception

analyzeXY

public void analyzeXY()
               throws java.lang.Exception
coordinates univariate analyses for dependent on independent variables

Throws:
java.lang.Exception

analyzeMultY

public void analyzeMultY()
                  throws java.lang.Exception
coordinates analyses for multiple dependent on multiple independent variables

Throws:
java.lang.Exception

analyzeMultXY

public void analyzeMultXY()
                   throws java.lang.Exception
coordinates analyses for multiple dependent on multiple independent variables

Throws:
java.lang.Exception

controlAnalyze_1YnX

public void controlAnalyze_1YnX(Variable Y,
                                VariableOrganizer XOrganizer)
                         throws java.lang.Exception
coordinates an analysis of one dependent onto multiple independent variable.

Parameters:
Y - an instance of Variable class that is used as a dependent variable
XOrganizer - an instance of VariableOrganizer class coordinates a set of independent variables. If null, the subset of all variables is used
Throws:
java.lang.Exception

controlAnalyze_nY1X

public void controlAnalyze_nY1X(VariableOrganizer YOrganizer,
                                Variable X)
                         throws java.lang.Exception
coordinates an analysis of multiple dependent onto one independent variable. This is a placeholder for the analysis of subclasses

Parameters:
YOrganizer - an instance of VariableOrganizer class coordinates a set of dependent variables. If null, the subset of all variables is used
X - an instance of Variable class that is used as an independent variable
Throws:
java.lang.Exception

controlAnalyze_nYnX

public void controlAnalyze_nYnX(VariableOrganizer YOrganizer,
                                VariableOrganizer XOrganizer)
                         throws java.lang.Exception
coordinates an analysis of multiple dependent onto multiple independent variable. This is a placeholder for the analysis of subclasses

Parameters:
YOrganizer - an instance of VariableOrganizer class coordinates a set of dependent variables. If null, the subset of all variables is used
XOrganizer - an instance of VariableOrganizer class coordinates a set of independent variables. If null, the subset of all variables is used
Throws:
java.lang.Exception

controlAnalyze_nY

public void controlAnalyze_nY(VariableOrganizer YOrganizer)
                       throws java.lang.Exception
coordinates an analysis of multiple dependent variable.

Parameters:
YOrganizer - an instance of VariableOrganizer class that contains dependent variables
Throws:
java.lang.Exception

controlAnalyze_1Y1X

public void controlAnalyze_1Y1X(Variable Y,
                                Variable X)
                         throws java.lang.Exception
coordinates an analysis of dependent onto independent variable

Parameters:
X - an instance of Variable class that is used as a independent variable
Y - an instance of Variable class that is used as a dependent variable
Throws:
java.lang.Exception

doAnalyze_1Y

public void doAnalyze_1Y(Variable YVariable)
                  throws java.lang.Exception
lists the descriptive statistics results for a variables

Parameters:
YVariable - the dependent Variable
Throws:
java.lang.Exception

doAnalyze_1Y

public void doAnalyze_1Y(Variable YVariable,
                         java.lang.Double hypMean)
                  throws java.lang.Exception
lists the results from a comparison with an a-priori mean

Parameters:
YVariable - the dependent Variable
hypMean - the value of the a-priori hypothesis
Throws:
java.lang.Exception

doAnalyze_nY

public void doAnalyze_nY(VariableOrganizer YOrganizer)
                  throws java.lang.Exception
performs an analysis of multiple dependent variable. This is a placeholder for the analysis of subclasses

Parameters:
YOrganizer - an instance of VariableOrganizer class that is used as a dependent variable
Throws:
java.lang.Exception

doAnalyze_1Y1X2Groups

public void doAnalyze_1Y1X2Groups(Variable X,
                                  Variable Y)
                           throws java.lang.Exception
lists the results from an analysis of one dependent variable on one indepent variable (with 2 states). This is a placeholder for the analysis of subclasses

Throws:
java.lang.Exception

doAnalyze_1Y1XnGroups

public void doAnalyze_1Y1XnGroups(Variable X,
                                  Variable Y)
                           throws java.lang.Exception
lists the results from an analysis of one dependent variable on one indepent variable (with >2 states). This is a placeholder for the analysis of subclasses

Throws:
java.lang.Exception

doAnalyze_1Y1Xcontinuous

public void doAnalyze_1Y1Xcontinuous(Variable X,
                                     Variable Y)
                              throws java.lang.Exception
lists the results from an analysis of one dependent variable on one continuous indepent variable. This is a placeholder for the analysis of subclasses

Throws:
java.lang.Exception

doAnalyze_1YnXcontinuous

public void doAnalyze_1YnXcontinuous(Variable Y,
                                     VariableOrganizer XOrganizer)
                              throws java.lang.Exception
lists the results from an analysis of one dependent variable on multiple indepent variable. This is a placeholder for the analysis of subclasses

Parameters:
Y - the dependent Variable
XOrganizer - an instance of VariableOrganizer class coordinates a set of independent variables. If null, the subset of all variables is used
Throws:
java.lang.Exception

doAnalyze_1YnXnGroups

public void doAnalyze_1YnXnGroups(Variable Y,
                                  VariableOrganizer XOrganizer)
                           throws java.lang.Exception
lists the results from an analysis of one dependent variable on multiple indepent variable. This is a placeholder for the analysis of subclasses

Parameters:
Y - the dependent Variable
XOrganizer - an instance of VariableOrganizer class coordinates a set of independent variables. If null, the subset of all variables is used
Throws:
java.lang.Exception

doAnalyze_nYnX

public void doAnalyze_nYnX(VariableOrganizer YOrganizer,
                           VariableOrganizer XOrganizer)
                    throws java.lang.Exception
lists the results from an analysis of one dependent variable on multiple indepent variable. This is a placeholder for the analysis of subclasses

Parameters:
YOrganizer - an instance of VariableOrganizer class coordinates a set of dependent variables. If null, the subset of all variables is used
XOrganizer - an instance of VariableOrganizer class coordinates a set of independent variables. If null, the subset of all variables is used
Throws:
java.lang.Exception

doAnalyze_nY1Xcontinuous

public void doAnalyze_nY1Xcontinuous(VariableOrganizer YOrganizer,
                                     Variable X)
                              throws java.lang.Exception
lists the results from an analysis of one dependent continuous variable on multiple indepent variable. This is a placeholder for the analysis of subclasses

Parameters:
YOrganizer - an instance of VariableOrganizer class coordinates a set of dependent or independent variables. If null, the subset of all Y variables is used
X - the independent Variable
Throws:
java.lang.Exception

doAnalyze_nY1XnGroups

public void doAnalyze_nY1XnGroups(VariableOrganizer YOrganizer,
                                  Variable X)
                           throws java.lang.Exception
lists the results from an analysis of one ordinal or nominal dependent variable on multiple indepent variable. This is a placeholder for the analysis of subclasses

Parameters:
YOrganizer - an instance of VariableOrganizer class coordinates a set of dependent or independent variables. If null, the subset of all Y variables is used
X - the independent Variable
Throws:
java.lang.Exception

listGroupDescriptives

public void listGroupDescriptives(Variable theXVariable,
                                  Variable theYVariable)
                           throws java.lang.Exception
lists the descriptive statistics for the groups identified by X

Parameters:
theXVariable - the dependent Variable
theYVariable - the dependent Variable
Throws:
java.lang.Exception