|
TTestPowerAnalysisGetEffectSize Method
|
Estimates the number of samples necessary to attain the
required power level for the given effect size.
Namespace:
Accord.Statistics.Testing.Power
Assembly:
Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax public static TTestPowerAnalysis GetEffectSize(
int sampleSize,
double power = 0.8,
double alpha = 0.05,
OneSampleHypothesis hypothesis = OneSampleHypothesis.ValueIsDifferentFromHypothesis
)
Public Shared Function GetEffectSize (
sampleSize As Integer,
Optional power As Double = 0.8,
Optional alpha As Double = 0.05,
Optional hypothesis As OneSampleHypothesis = OneSampleHypothesis.ValueIsDifferentFromHypothesis
) As TTestPowerAnalysis
Request Example
View SourceParameters
- sampleSize
- Type: SystemInt32
The number of observations in the sample. - power (Optional)
- Type: SystemDouble
The desired power level. Default is 0.8. - alpha (Optional)
- Type: SystemDouble
The desired significance level. Default is 0.05. - hypothesis (Optional)
- Type: Accord.Statistics.TestingOneSampleHypothesis
The alternative hypothesis (research hypothesis) to be tested.
Return Value
Type:
TTestPowerAnalysisThe required number of samples.
See Also