StephenAshley.Biostatistics.ChiSquaredArray Class Reference

An array of values comprising a contingency table for the Chi Squared (χ²) analysis. More...

Inheritance diagram for StephenAshley.Biostatistics.ChiSquaredArray:

StephenAshley.Biostatistics.FisherExactArray

List of all members.

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.


Detailed Description

An array of values comprising a contingency table for the Chi Squared (χ²) analysis.

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.


Constructor & Destructor Documentation

StephenAshley.Biostatistics.ChiSquaredArray.ChiSquaredArray (  )  [protected]

Constructs an empty ChiSquaredArray.

Definition at line 19 of file ChiSquaredArray.cs.

StephenAshley.Biostatistics.ChiSquaredArray.ChiSquaredArray ( Int32  columns,
Int32  rows 
)

Constructs a ChiSquaredArray with specified dimensions.

Parameters:
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.


Member Function Documentation

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.

Parameters:
iCols The number of columns in the TextBox.
iRows The number of rows in the TextBox.
pitb The TextBox.
Exceptions:
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.

Parameters:
column The column for the added Outcome.
row The row for the added Outcome.
outcome The Outcome.
Exceptions:
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.

Parameters:
column 
row 
observed 
expected 
Exceptions:
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.

Parameters:
column The column for the added value.
row The row for the added value.
observed The observed value.
Exceptions:
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.

Returns:
The statistic.

Definition at line 143 of file ChiSquaredArray.cs.

Int32 StephenAshley.Biostatistics.ChiSquaredArray.DegreesOfFreedom (  ) 

Returns the degrees of freedom for the ChiSquaredArray.

Returns:
The degrees of freedom.

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.

Returns:
p.

Reimplemented in StephenAshley.Biostatistics.FisherExactArray.

Definition at line 160 of file ChiSquaredArray.cs.


Member Data Documentation

An array of Outcome objects holding the observed and expected values in the contingency table.

Definition at line 36 of file ChiSquaredArray.cs.


The documentation for this class was generated from the following file:

Generated on Sun May 31 19:43:39 2009 for "Biostatistics Documentation" by  doxygen 1.5.9