C# Class Accord.Statistics.Testing.Power.TwoSampleTTestPowerAnalysis

Inheritance: BaseTwoSamplePowerAnalysis
Show file Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
ComputePower ( ) : void

Computes the power for a test with givens values of effect size and number of samples under IPowerAnalysis.Size.

GetSampleSize ( double delta, double standardDeviation = 1, double proportion = 1.0, double power = 0.8, double alpha = 0.05, TwoSampleHypothesis hypothesis = TwoSampleHypothesis.ValuesAreDifferent ) : TwoSampleTTestPowerAnalysis

Estimates the number of samples necessary to attain the required power level for the given effect size.

GetSampleSize ( double delta, double variance1, double variance2, double proportion = 1.0, double power = 0.8, double alpha = 0.05, TwoSampleHypothesis hypothesis = TwoSampleHypothesis.ValuesAreDifferent ) : TwoSampleTTestPowerAnalysis

Estimates the number of samples necessary to attain the required power level for the given effect size.

TwoSampleTTestPowerAnalysis ( TwoSampleHypothesis hypothesis ) : System

Creates a new TTestPowerAnalysis.

TwoSampleTTestPowerAnalysis ( TwoSampleTTest test ) : System

Creates a new TTestPowerAnalysis.

Method Details

ComputePower() public method

Computes the power for a test with givens values of effect size and number of samples under IPowerAnalysis.Size.
public ComputePower ( ) : void
return void

GetSampleSize() public static method

Estimates the number of samples necessary to attain the required power level for the given effect size.
public static GetSampleSize ( double delta, double standardDeviation = 1, double proportion = 1.0, double power = 0.8, double alpha = 0.05, TwoSampleHypothesis hypothesis = TwoSampleHypothesis.ValuesAreDifferent ) : TwoSampleTTestPowerAnalysis
delta double The minimum detectable difference.
standardDeviation double The difference standard deviation.
proportion double The proportion of observations in the second group /// when compared to the first group. A proportion of 2:1 results in twice more /// samples in the second group than in the first. Default is 1.
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.
return TwoSampleTTestPowerAnalysis

GetSampleSize() public static method

Estimates the number of samples necessary to attain the required power level for the given effect size.
public static GetSampleSize ( double delta, double variance1, double variance2, double proportion = 1.0, double power = 0.8, double alpha = 0.05, TwoSampleHypothesis hypothesis = TwoSampleHypothesis.ValuesAreDifferent ) : TwoSampleTTestPowerAnalysis
delta double The minimum detectable difference.
variance1 double The first sample variance.
variance2 double The second sample variance.
proportion double The proportion of observations in the second group /// when compared to the first group. A proportion of 2:1 results in twice more /// samples in the second group than in the first. Default is 1.
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.
return TwoSampleTTestPowerAnalysis

TwoSampleTTestPowerAnalysis() public method

Creates a new TTestPowerAnalysis.
public TwoSampleTTestPowerAnalysis ( TwoSampleHypothesis hypothesis ) : System
hypothesis TwoSampleHypothesis The hypothesis tested.
return System

TwoSampleTTestPowerAnalysis() public method

Creates a new TTestPowerAnalysis.
public TwoSampleTTestPowerAnalysis ( TwoSampleTTest test ) : System
test TwoSampleTTest The test to create the analysis for.
return System