|
TwoProportionZTest Constructor (Double, Int32, Double, Int32, TwoSampleHypothesis)
|
Creates a new Z-Test for two sample proportions.
Namespace:
Accord.Statistics.Testing
Assembly:
Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax public TwoProportionZTest(
double proportion1,
int sampleSize1,
double proportion2,
int sampleSize2,
TwoSampleHypothesis alternate = TwoSampleHypothesis.ValuesAreDifferent
)
Public Sub New (
proportion1 As Double,
sampleSize1 As Integer,
proportion2 As Double,
sampleSize2 As Integer,
Optional alternate As TwoSampleHypothesis = TwoSampleHypothesis.ValuesAreDifferent
)
Request Example
View SourceParameters
- proportion1
- Type: SystemDouble
The proportion of success observations in the first sample. - sampleSize1
- Type: SystemInt32
The total number of observations in the first sample. - proportion2
- Type: SystemDouble
The proportion of success observations in the second sample. - sampleSize2
- Type: SystemInt32
The total number of observations in the second sample. - alternate (Optional)
- Type: Accord.Statistics.TestingTwoSampleHypothesis
The alternative hypothesis (research hypothesis) to test.
See Also