|
TwoProportionZTest Constructor (Int32, Int32, Int32, 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(
int successes1,
int trials1,
int successes2,
int trials2,
TwoSampleHypothesis alternate = TwoSampleHypothesis.ValuesAreDifferent
)
Public Sub New (
successes1 As Integer,
trials1 As Integer,
successes2 As Integer,
trials2 As Integer,
Optional alternate As TwoSampleHypothesis = TwoSampleHypothesis.ValuesAreDifferent
)
Request Example
View SourceParameters
- successes1
- Type: SystemInt32
The number of successes in the first sample. - trials1
- Type: SystemInt32
The total number of trials (observations) in the first sample. - successes2
- Type: SystemInt32
The number of successes in the second sample. - trials2
- Type: SystemInt32
The total number of trials (observations) in the second sample. - alternate (Optional)
- Type: Accord.Statistics.TestingTwoSampleHypothesis
The alternative hypothesis (research hypothesis) to test.
See Also