|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectJavaGrinders.Analyzer
JavaGrinders.ContingencyAnalyzer
public class ContingencyAnalyzer
coordinates the analysis of contingency tables in an application. It owns a row by column table
| Field Summary | |
|---|---|
boolean |
diagonal
|
double[] |
itsHypothesisPs
|
ContingencyTable |
itsTable
|
| Fields inherited from class JavaGrinders.Analyzer |
|---|
df |
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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 theXVariable,
Variable theYVariable)
performs a Contingency analysis (Y variable with 2 groups) |
void |
doAnalyze_1Y1XnGroups(Variable theXVariable,
Variable theYVariable)
performs a Contingency analysis (Y variable with n groups) |
void |
doAnalyze_nY(VariableOrganizer YOrganizer)
controls an analysis of multiple dependent variables |
ContingencyTable |
getTable()
returns the crosstabulation (i.e., frequency) table |
void |
listContingencyResults()
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public ContingencyTable itsTable
public boolean diagonal
public double[] itsHypothesisPs
| Constructor Detail |
|---|
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?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 frequencies| Method Detail |
|---|
public void setTable(ContingencyTable aTable)
aTable - this instance of ContingencyTable
class contains a crosstabulation table of frequencies
public 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.Exceptionpublic void listContingencyResults()
public void listFTukeyDeviates()
public void setHypothesisPs(double[] thePs)
throws java.lang.Exception
thePs - the array of probabilities
java.lang.Exceptionpublic void listExpectedTable()
public void listTable()
public void doAnalyze_1Y(Variable theYVariable)
throws java.lang.Exception
doAnalyze_1Y in class AnalyzertheYVariable - the dependent Variable
java.lang.Exception
public void doAnalyze_nY(VariableOrganizer YOrganizer)
throws java.lang.Exception
doAnalyze_nY in class AnalyzerYOrganizer - an instance of VariableOrganizer class that is used as a dependent variable
java.lang.Exception
public void analyze_nY()
throws java.lang.Exception
java.lang.Exception
public void doAnalyze_1Y1X2Groups(Variable theXVariable,
Variable theYVariable)
throws java.lang.Exception
doAnalyze_1Y1X2Groups in class AnalyzertheXVariable - the independent Variable * @param theYVariable the dependent Variable
java.lang.Exception
public void doAnalyze_1Y1XnGroups(Variable theXVariable,
Variable theYVariable)
throws java.lang.Exception
doAnalyze_1Y1XnGroups in class AnalyzertheXVariable - the independent Variable * @param theYVariable the dependent Variable
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||