StephenAshley.Biostatistics.ZTest Class Reference

Data and methods for the performance of the z-Test. More...

List of all members.

Classes

struct  Fields

Public Member Functions

 ZTest ()
 Constructor for a ZTest object.
 ZTest (Int32 iSampleSize1, Int32 iSampleSize2, NUMBER decProportion1, NUMBER decProportion2)
 Constructor for a ZTest object from two sample sizes and two proportions.
Int32 N1 ()
 Returns the first sample size.
void SetN1 (Int32 value)
 Sets the first sample size.
Int32 N2 ()
 Returns the second sample size.
void SetN2 (Int32 value)
 Sets the second sample size.
NUMBER P1 ()
 Returns the first proportion.
void SetP1 (NUMBER value)
 Sets the value of the first proportion.
NUMBER P2 ()
 Returns the second proportion.
void SetP2 (NUMBER value)
 Sets the value of the second proportion.
NUMBER ConfidenceLevelLowerLimit ()
 Returns the lower limit of the 95% confidence interval.
NUMBER ConfidenceLevelUpperLimit ()
 Returns the upper limit of the 95% confidence interval.
NUMBER Difference ()
 Returns the difference between the two proportions.
NUMBER p ()
 Returns the statistic p associated with the associated value of Z.
NUMBER PooledProportion ()
 Returns the pooled proportion for the associated values of N1, N2, P1, and P2.
NUMBER StandardErrorOfDifference ()
 Returns the standard error of the difference for the associated values of N1, N2, P1, and P2.
NUMBER Z ()
 Returns the z statistic for the associated values of N1, N2, P1, and P2.


Detailed Description

Data and methods for the performance of the z-Test.

See generally Stanton A. Glantz, Primer of Biostatistics ch. 5 (6th ed. 2005);

Definition at line 11 of file ZTest.cs.


Constructor & Destructor Documentation

StephenAshley.Biostatistics.ZTest.ZTest (  ) 

Constructor for a ZTest object.

Definition at line 16 of file ZTest.cs.

StephenAshley.Biostatistics.ZTest.ZTest ( Int32  iSampleSize1,
Int32  iSampleSize2,
NUMBER  decProportion1,
NUMBER  decProportion2 
)

Constructor for a ZTest object from two sample sizes and two proportions.

Parameters:
iSampleSize1 The first sample size.
iSampleSize2 The second sample size.
decProportion1 The first proportion.
decProportion2 The second proportion

Definition at line 30 of file ZTest.cs.


Member Function Documentation

NUMBER StephenAshley.Biostatistics.ZTest.ConfidenceLevelLowerLimit (  ) 

Returns the lower limit of the 95% confidence interval.

Returns:
The limit.

Definition at line 132 of file ZTest.cs.

NUMBER StephenAshley.Biostatistics.ZTest.ConfidenceLevelUpperLimit (  ) 

Returns the upper limit of the 95% confidence interval.

Definition at line 141 of file ZTest.cs.

NUMBER StephenAshley.Biostatistics.ZTest.Difference (  ) 

Returns the difference between the two proportions.

Returns:
The difference.

Definition at line 150 of file ZTest.cs.

Int32 StephenAshley.Biostatistics.ZTest.N1 (  ) 

Returns the first sample size.

Returns:
The size.
Exceptions:
BiostatisticsException N1 is less than 2.

Definition at line 48 of file ZTest.cs.

Int32 StephenAshley.Biostatistics.ZTest.N2 (  ) 

Returns the second sample size.

Returns:
The size.

Definition at line 68 of file ZTest.cs.

NUMBER StephenAshley.Biostatistics.ZTest.p (  ) 

Returns the statistic p associated with the associated value of Z.

Returns:
p.

Definition at line 157 of file ZTest.cs.

NUMBER StephenAshley.Biostatistics.ZTest.P1 (  ) 

Returns the first proportion.

Returns:
The proportion.
Exceptions:
BiostatisticsException P1 is less than 0.

Definition at line 91 of file ZTest.cs.

NUMBER StephenAshley.Biostatistics.ZTest.P2 (  ) 

Returns the second proportion.

Returns:
The proportion.

Definition at line 111 of file ZTest.cs.

NUMBER StephenAshley.Biostatistics.ZTest.PooledProportion (  ) 

Returns the pooled proportion for the associated values of N1, N2, P1, and P2.

Returns:
The proportion.
Exceptions:
BiostatisticsException N1 + N2 equals zero.

Definition at line 167 of file ZTest.cs.

void StephenAshley.Biostatistics.ZTest.SetN1 ( Int32  value  ) 

Sets the first sample size.

Parameters:
value The size.
Exceptions:
BiostatisticsException N1 is less than 2.

Definition at line 58 of file ZTest.cs.

void StephenAshley.Biostatistics.ZTest.SetN2 ( Int32  value  ) 

Sets the second sample size.

Parameters:
value The size.
Exceptions:
BiostatisticsException N2 is less than 2.

Definition at line 79 of file ZTest.cs.

void StephenAshley.Biostatistics.ZTest.SetP1 ( NUMBER  value  ) 

Sets the value of the first proportion.

Parameters:
value The value.
Exceptions:
BiostatisticsException P1is less than 0.

Definition at line 101 of file ZTest.cs.

void StephenAshley.Biostatistics.ZTest.SetP2 ( NUMBER  value  ) 

Sets the value of the second proportion.

Parameters:
value The value.
Exceptions:
BiostatisticsException P2 is less than 0.

Definition at line 122 of file ZTest.cs.

NUMBER StephenAshley.Biostatistics.ZTest.StandardErrorOfDifference (  ) 

Returns the standard error of the difference for the associated values of N1, N2, P1, and P2.

Returns:
The standard error.
Exceptions:
BiostatisticsException N1 or N2 equals zero.

Definition at line 190 of file ZTest.cs.

NUMBER StephenAshley.Biostatistics.ZTest.Z (  ) 

Returns the z statistic for the associated values of N1, N2, P1, and P2.

Definition at line 211 of file ZTest.cs.


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

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