Public Member Functions | |
ChiSquaredArray (Int32 columns, Int32 rows) | |
Constructs a ChiSquaredArray with specified dimensions. | |
void | Add (Int32 column, Int32 row, Int32 observed) |
Adds an observed value to the ChiSquaredArray at the specified location. | |
void | Add (Int32 column, Int32 row, Int32 observed, NUMBER expected) |
Adds an observed value and an expected value to the ChiSquaredArray at the specified location. | |
void | Add (Int32 column, Int32 row, Outcome outcome) |
Add an Outcome to the ChiSquaredArray at the specified location. | |
void | Add (Int32 iCols, Int32 iRows, TextBox[,] pitb) |
Fills the ChiSquaredArray with the values represented by the contents of an array of TextBox objects. | |
NUMBER | ChiSquared () |
Returns the Chi Squared statistic (χ²) for the ChiSquaredArray. | |
Int32 | DegreesOfFreedom () |
Returns the degrees of freedom for the ChiSquaredArray. | |
virtual NUMBER | p () |
Returns the probability value p for the ChiSquaredArray object’s value of ChiSquared and DegreesOfFreedom. | |
Protected Member Functions | |
ChiSquaredArray () | |
Constructs an empty ChiSquaredArray. | |
Protected Attributes | |
Outcome[,] | outcomesArray |
An array of Outcome objects holding the observed and expected values in the contingency table. |
See generally Stanton A. Glantz, Primer of Biostatistics ch. 5 (6th ed. 2005); Jerrold H. Zar, Biostatistical Analysis ch. 23 (5th ed. 2010 [sic]).
Definition at line 14 of file ChiSquaredArray.cs.
StephenAshley.Biostatistics.ChiSquaredArray.ChiSquaredArray | ( | ) | [protected] |
StephenAshley.Biostatistics.ChiSquaredArray.ChiSquaredArray | ( | Int32 | columns, | |
Int32 | rows | |||
) |
Constructs a ChiSquaredArray with specified dimensions.
columns | The number of columns in the contingency table. | |
rows | The number of rows in the contingency table. |
Definition at line 26 of file ChiSquaredArray.cs.
void StephenAshley.Biostatistics.ChiSquaredArray.Add | ( | Int32 | iCols, | |
Int32 | iRows, | |||
TextBox | pitb[,] | |||
) |
Fills the ChiSquaredArray with the values represented by the contents of an array of TextBox objects.
iCols | The number of columns in the TextBox. | |
iRows | The number of rows in the TextBox. | |
pitb | The TextBox. |
BiostatisticsException | • column is less than 0, • column is greater than the number of columns in the contingency table, • row is less than 0, or • row is greater than the number of rows in the contingency table. |
Definition at line 133 of file ChiSquaredArray.cs.
void StephenAshley.Biostatistics.ChiSquaredArray.Add | ( | Int32 | column, | |
Int32 | row, | |||
Outcome | outcome | |||
) |
Add an Outcome to the ChiSquaredArray at the specified location.
column | The column for the added Outcome. | |
row | The row for the added Outcome. | |
outcome | The Outcome. |
BiostatisticsException | • column is less than 0, • column is greater than the number of columns in the contingency table, • row is less than 0, or • row is greater than the number of rows in the contingency table. |
Definition at line 112 of file ChiSquaredArray.cs.
void StephenAshley.Biostatistics.ChiSquaredArray.Add | ( | Int32 | column, | |
Int32 | row, | |||
Int32 | observed, | |||
NUMBER | expected | |||
) |
Adds an observed value and an expected value to the ChiSquaredArray at the specified location.
column | ||
row | ||
observed | ||
expected |
BiostatisticsException | • column is less than 0, • column is greater than the number of columns in the contingency table, • row is less than 0, or • row is greater than the number of rows in the contingency table. |
Definition at line 92 of file ChiSquaredArray.cs.
void StephenAshley.Biostatistics.ChiSquaredArray.Add | ( | Int32 | column, | |
Int32 | row, | |||
Int32 | observed | |||
) |
Adds an observed value to the ChiSquaredArray at the specified location.
column | The column for the added value. | |
row | The row for the added value. | |
observed | The observed value. |
BiostatisticsException | • column is less than 0, • column is greater than the number of columns in the contingency table, • row is less than 0, or • row is greater than the number of rows in the contingency table. |
Definition at line 55 of file ChiSquaredArray.cs.
NUMBER StephenAshley.Biostatistics.ChiSquaredArray.ChiSquared | ( | ) |
Returns the Chi Squared statistic (χ²) for the ChiSquaredArray.
Definition at line 143 of file ChiSquaredArray.cs.
Int32 StephenAshley.Biostatistics.ChiSquaredArray.DegreesOfFreedom | ( | ) |
Returns the degrees of freedom for the ChiSquaredArray.
Definition at line 152 of file ChiSquaredArray.cs.
virtual NUMBER StephenAshley.Biostatistics.ChiSquaredArray.p | ( | ) | [virtual] |
Returns the probability value p for the ChiSquaredArray object’s value of ChiSquared and DegreesOfFreedom.
Reimplemented in StephenAshley.Biostatistics.FisherExactArray.
Definition at line 160 of file ChiSquaredArray.cs.
Outcome [,] StephenAshley.Biostatistics.ChiSquaredArray.outcomesArray [protected] |
An array of Outcome objects holding the observed and expected values in the contingency table.
Definition at line 36 of file ChiSquaredArray.cs.