StatBean Name: ContingencyTableStats

Purpose: Calculates measures of association for rows and columns in contingency tables.

DataSource: any (automatic data transfer if Crosstabulation).

Read/Write Properties
NameTypeDescriptionPossible ValuesDefault Value
columnLabelVariableNameStringThe name of the column containing row labels.Any string."Label"
frequencyVariableNameStringThe name of the column containing cell frequencies, in row-by-row orderAny string."Frequency"
numberOfColumnsintNumber of columns.1+0
numberOfRowsintNumber of rows.1+0
rowLabelVariableNameStringThe name of the column containing row labels.Any string."Label"

Other Public Methods
NameDescriptionArgumentsReturn Value
double getContingencyCoefficient()Returns statistic for test of association.None.Statistic.
double getChiSquared()Returns statistic for test of association.None.Statistic.
int getChiSquaredDf()Returns degrees of freedom for test of association.None.degrees of freedom.
double getChiSquaredPValue()Returns P-value for test of association.None.P-value.
double getConditionalGamma()Returns statistic for test of association.None.Statistic.
double getCramersV()Returns statistic for test of association.None.Statistic.
double getEtaColumnsDependent()Returns statistic for test of association.None.Statistic.
double getEtaRowsDependent()Returns statistic for test of association.None.Statistic.
double getFisherPvalue()Returns P-value for test of association.None.P-value.
double getKendallsTauB()Returns statistic for test of association.None.Statistic.
double getKendallsTauBPValue()Returns P-value for test of association.None.P-value.
double getKendallsTauC()Returns statistic for test of association.None.Statistic.
double getLambdaSymmetric()Returns statistic for test of association.None.Statistic.
double getLambdaRowsDependent()Returns statistic for test of association.None.Statistic.
double getLambdaColumnsDependent()Returns statistic for test of association.None.Statistic.
double getPearsonsR()Returns statistic for test of association.None.Statistic.
int getPearsonsRDf()Returns degrees of freedom for test of association.None.Degrees of freedom.
double getPearsonsRPValue()Returns P-value for test of association.None.P-value.
double getSomersDColumnsDependent()Returns statistic for test of association.None.Statistic.
double getSomersDRowsDependent()Returns statistic for test of association.None.Statistic.
double getSomersDSymmetric()Returns statistic for test of association.None.Statistic.
int getTotalCount()Returns sum of the frequencies.None.Sum.
double getUncertaintyCoefficientColumnsDependent()Returns statistic for test of association.None.Statistic.
double getUncertaintyCoefficientRowsDependent()Returns statistic for test of association.None.Statistic.
double getUncertaintyCoefficientSymmetric()Returns statistic for test of association.None.Statistic.

Code Sample - see Crosstabulation.