public class ContingencyAnalyzer extends Analyzer
Modifier and Type | Field and Description |
---|---|
boolean |
diagonal |
double[] |
itsHypothesisPs |
ContingencyTable |
itsTable |
Constructor and Description |
---|
ContingencyAnalyzer(ContingencyTable aTable)
Standard constructor, providing it with a contingency table directly
|
ContingencyAnalyzer(VariableOrganizer anOrganizer)
Standard constructor using a VariableOrganizer, assuming that the diagonal is present
|
ContingencyAnalyzer(VariableOrganizer anOrganizer,
boolean withDiagonal)
Standard constructor using a VariableOrganizer
|
Modifier and Type | Method and Description |
---|---|
void |
analyze_nY()
performs an analysis of multiple dependent variables
|
void |
assertTable()
checks for a crosstabulation (i.e., frequency) ContingencyTable.
|
void |
createContingencyTable()
checks for a crosstabulation (i.e., frequency) ContingencyTable.
|
void |
createCrossTabulationtionTable()
checks for a crosstabulation (i.e., frequency) ContingencyTable.
|
void |
createTable()
checks for a crosstabulation (i.e., frequency) ContingencyTable.
|
void |
createTransitionTable()
checks for a crosstabulation (i.e., frequency) ContingencyTable.
|
void |
doAnalyze_1Y(Variable theYVariable)
lists the results from a transition analysis of the variables.
|
void |
doAnalyze_1Y1X2Groups(Variable theYVariable,
Variable theXVariable)
performs a Contingency analysis (Y variable with 2 groups)
|
void |
doAnalyze_1Y1XnGroups(Variable theYVariable,
Variable theXVariable)
performs a Contingency analysis (Y variable with n groups)
|
void |
doAnalyze_nY(VariableOrganizer YOrganizer)
controls an analysis of multiple dependent variables
|
ContTableResults |
getContingencyTableResults()
performs a Test of Independence on the ContingencyTable/
and reports the results as statistics for X2 and loglikelihood ratio.
|
double[] |
getHypothesisPs()
returns the expected probabilities for different columns
|
ContingencyTable |
getTable()
returns the crosstabulation (i.e., frequency) table
|
void |
listContingencyTableResults()
performs a Test of Independence on the ContingencyTable/
and reports the results as statistics for X2 and loglikelihood ratio.
|
void |
listExpectedTable()
reports the expected values for the ContingencyTable
|
void |
listFTukeyDeviates()
reports the Freeman-Tukey deviates for the ContingencyTable
|
void |
listTable()
reports the ContingencyTable
|
void |
setHypothesisPs(double[] thePs)
sets the expected probabilities for different columns
|
void |
setTable(ContingencyTable aTable)
Installs a crosstabulation (i.e., frequency) table.
|
analyzeMultXY, analyzeMultY, analyzeXY, analyzeY, analyzeY, clearAllDesignRoles, confirmOrganizer, controlAnalyze_1Y1X, controlAnalyze_1YnX, controlAnalyze_nY, controlAnalyze_nY1X, controlAnalyze_nYnX, doAnalyze_1Y, doAnalyze_1Y1Xcontinuous, doAnalyze_1YnXcontinuous, doAnalyze_1YnXnGroups, doAnalyze_nY1Xcontinuous, doAnalyze_nY1XnGroups, doAnalyze_nYnX, getGroupNs, getNXVariables, getNYVariables, getOrganizer, getXVariable, getYVariable, getYVariableNames, listGroupDescriptives, setOrganizer
public ContingencyTable itsTable
public boolean diagonal
public double[] itsHypothesisPs
public ContingencyAnalyzer(VariableOrganizer anOrganizer, boolean withDiagonal)
anOrganizer
- an instance of VariableOrganizer
class coordinates a set of variables with respect to the number of data points
available and the rows that are currently selected * @param withDiagonal should the Analyzer consider the diagonal?anOrganizer
- the VariableOrganizerwithDiagonal
- use diagonal?public ContingencyAnalyzer(VariableOrganizer anOrganizer)
anOrganizer
- an instance of VariableOrganizer
class coordinates a set of variables with respect to the number of data points
available and the rows that are currently selectedpublic ContingencyAnalyzer(ContingencyTable aTable)
aTable
- this instance of ContingencyTable
class contains a crosstabulation table of frequenciespublic void setTable(ContingencyTable aTable)
aTable
- this instance of ContingencyTable
class contains a crosstabulation table of frequenciespublic ContingencyTable getTable() throws java.lang.Exception
java.lang.Exception
- ...public void assertTable() throws java.lang.Exception
java.lang.Exception
- ...public void createTransitionTable() throws java.lang.Exception
java.lang.Exception
- ...public void createCrossTabulationtionTable() throws java.lang.Exception
java.lang.Exception
- ...public void createContingencyTable() throws java.lang.Exception
java.lang.Exception
- ...public void createTable() throws java.lang.Exception
java.lang.Exception
- ...public ContTableResults getContingencyTableResults()
public void listContingencyTableResults()
public void listFTukeyDeviates()
public void setHypothesisPs(double[] thePs) throws java.lang.Exception
thePs
- the array of probabilitiesjava.lang.Exception
- ...public double[] getHypothesisPs()
public void listExpectedTable()
public void listTable()
public void doAnalyze_1Y(Variable theYVariable) throws java.lang.Exception
doAnalyze_1Y
in class Analyzer
theYVariable
- the dependent Variablejava.lang.Exception
- if no Organizer was availablepublic void doAnalyze_nY(VariableOrganizer YOrganizer) throws java.lang.Exception
doAnalyze_nY
in class Analyzer
YOrganizer
- an instance of VariableOrganizer class that is used as a dependent variablejava.lang.Exception
- if no Organizer was availablepublic void analyze_nY() throws java.lang.Exception
java.lang.Exception
- ...public void doAnalyze_1Y1X2Groups(Variable theYVariable, Variable theXVariable) throws java.lang.Exception
doAnalyze_1Y1X2Groups
in class Analyzer
theXVariable
- the independent Variable * @param theYVariable the dependent VariabletheYVariable
- an instance of Variable class that is used as a dependent variablejava.lang.Exception
- if no Organizer was availablepublic void doAnalyze_1Y1XnGroups(Variable theYVariable, Variable theXVariable) throws java.lang.Exception
doAnalyze_1Y1XnGroups
in class Analyzer
theXVariable
- the independent Variable * @param theYVariable the dependent VariabletheYVariable
- an instance of Variable class that is used as a dependent variablejava.lang.Exception
- if no Organizer was availableCopyright 2016