StephenAshley.Biostatistics.CochranQGroupsCollection Class Reference

A list of Group objects and the methods necessary to perform Cochran’s Q Test. More...

Inheritance diagram for StephenAshley.Biostatistics.CochranQGroupsCollection:

StephenAshley.Biostatistics.GroupsCollection

List of all members.

Public Member Functions

 CochranQGroupsCollection ()
 Constructs an empty CochranQGroupsCollection.
 CochranQGroupsCollection (List< Group > groups)
 Constructs a CochranQGroupsCollection from a list of Group objects.
override void Add (Group group)
 Adds a Group to the CochranQGroupsCollection.
Int32[] B ()
 Returns an array containing the sums of the 1s and 0s for each subject.
Int32 DegreesOfFreedom ()
 The degrees of freedom of the CochranQGroupsCollection.
Int32[] G ()
 Returns an array containing the sums of the 0s and 1s for each Group.
Int32 N ()
 Returns the number of subjects in the CochranQGroupsCollection.
NUMBER p ()
 Returns the statistic p for the CochranQGroupsCollection based on the χ² distribution.
NUMBER Q ()
 Returns the Q statistic for the CochranQGroupsCollection.


Detailed Description

A list of Group objects and the methods necessary to perform Cochran’s Q Test.

Definition at line 14 of file CochranQGroupsCollection.cs.


Constructor & Destructor Documentation

StephenAshley.Biostatistics.CochranQGroupsCollection.CochranQGroupsCollection (  ) 

Constructs an empty CochranQGroupsCollection.

Definition at line 19 of file CochranQGroupsCollection.cs.

StephenAshley.Biostatistics.CochranQGroupsCollection.CochranQGroupsCollection ( List< Group groups  ) 

Constructs a CochranQGroupsCollection from a list of Group objects.

Parameters:
groups The Group objects.

Definition at line 26 of file CochranQGroupsCollection.cs.


Member Function Documentation

override void StephenAshley.Biostatistics.CochranQGroupsCollection.Add ( Group  group  )  [virtual]

Adds a Group to the CochranQGroupsCollection.

Parameters:
group The Group.
Exceptions:
BiostatisticsException • the Group is a null reference,

• the Group has no members, or

• the size of the Group is different from the sizes of the other Group objects.

Reimplemented from StephenAshley.Biostatistics.GroupsCollection.

Definition at line 39 of file CochranQGroupsCollection.cs.

Int32 [] StephenAshley.Biostatistics.CochranQGroupsCollection.B (  ) 

Returns an array containing the sums of the 1s and 0s for each subject.

Returns:
The array.
Exceptions:
BiostatisticsException • The CochranQGroupsCollection contains no Group objects,

• The CochranQGroupsCollection contains fewer than 2 Group objects, or

• The Group objects contain no data.

Definition at line 75 of file CochranQGroupsCollection.cs.

Int32 StephenAshley.Biostatistics.CochranQGroupsCollection.DegreesOfFreedom (  ) 

The degrees of freedom of the CochranQGroupsCollection.

Returns:
The degrees of freedom.
Exceptions:
BiostatisticsException • The CochranQGroupsCollection contains no Group objects,

• The CochranQGroupsCollection contains fewer than 2 Group objects, or

• The Group objects contain no data.

Definition at line 110 of file CochranQGroupsCollection.cs.

Int32 [] StephenAshley.Biostatistics.CochranQGroupsCollection.G (  ) 

Returns an array containing the sums of the 0s and 1s for each Group.

Returns:
The array.
Exceptions:
BiostatisticsException • The CochranQGroupsCollection contains no Group objects,

• The CochranQGroupsCollection contains fewer than 2 Group objects, or

• The Group objects contain no data.

Definition at line 135 of file CochranQGroupsCollection.cs.

Int32 StephenAshley.Biostatistics.CochranQGroupsCollection.N (  ) 

Returns the number of subjects in the CochranQGroupsCollection.

Returns:
The number.

Definition at line 164 of file CochranQGroupsCollection.cs.

NUMBER StephenAshley.Biostatistics.CochranQGroupsCollection.p (  ) 

Returns the statistic p for the CochranQGroupsCollection based on the χ² distribution.

Returns:
p.

Definition at line 176 of file CochranQGroupsCollection.cs.

NUMBER StephenAshley.Biostatistics.CochranQGroupsCollection.Q (  ) 

Returns the Q statistic for the CochranQGroupsCollection.

Returns:
Q.

Definition at line 186 of file CochranQGroupsCollection.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