Accord.Statistics.Testing.Power.TwoSampleZTestPowerAnalysis.GetEffectSize C# (CSharp) Метод

GetEffectSize() публичный статический Метод

Estimates the number of samples necessary to attain the required power level for the given effect size.
public static GetEffectSize ( int sampleSize1, int sampleSize2, double power = 0.8, double alpha = 0.05, TwoSampleHypothesis hypothesis = TwoSampleHypothesis.ValuesAreDifferent ) : TwoSampleZTestPowerAnalysis
sampleSize1 int The number of observations in the first sample.
sampleSize2 int The number of observations in the second sample.
power double The desired power level. Default is 0.8.
alpha double The desired significance level. Default is 0.05.
hypothesis TwoSampleHypothesis The alternative hypothesis (research hypothesis) to be tested.
Результат TwoSampleZTestPowerAnalysis
        public static TwoSampleZTestPowerAnalysis GetEffectSize(int sampleSize1, int sampleSize2,
            double power = 0.8, double alpha = 0.05,
            TwoSampleHypothesis hypothesis = TwoSampleHypothesis.ValuesAreDifferent)
        {
            var analysis = new TwoSampleZTestPowerAnalysis(hypothesis)
            {
                Samples1 = sampleSize1,
                Samples2 = sampleSize2,
                Size = alpha,
                Power = power,
            };

            analysis.ComputeEffect();

            return analysis;
        }