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

Inheritance: BaseOneSamplePowerAnalysis
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.

GetEffectSize ( int sampleSize, double power = 0.8, double alpha = 0.05, OneSampleHypothesis hypothesis = OneSampleHypothesis.ValueIsDifferentFromHypothesis ) : TTestPowerAnalysis

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

GetSampleSize ( double delta, double standardDeviation = 1, double power = 0.8, double alpha = 0.05, OneSampleHypothesis hypothesis = OneSampleHypothesis.ValueIsDifferentFromHypothesis ) : TTestPowerAnalysis

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

TTestPowerAnalysis ( OneSampleHypothesis hypothesis ) : System

Creates a new TTestPowerAnalysis.

TTestPowerAnalysis ( 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

GetEffectSize() public static method

Estimates the number of samples necessary to attain the required power level for the given effect size.
public static GetEffectSize ( int sampleSize, double power = 0.8, double alpha = 0.05, OneSampleHypothesis hypothesis = OneSampleHypothesis.ValueIsDifferentFromHypothesis ) : TTestPowerAnalysis
sampleSize int The number of observations in the sample.
power double The desired power level. Default is 0.8.
alpha double The desired significance level. Default is 0.05.
hypothesis OneSampleHypothesis The alternative hypothesis (research hypothesis) to be tested.
return TTestPowerAnalysis

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 power = 0.8, double alpha = 0.05, OneSampleHypothesis hypothesis = OneSampleHypothesis.ValueIsDifferentFromHypothesis ) : TTestPowerAnalysis
delta double The minimum detectable difference.
standardDeviation double The difference standard deviation.
power double The desired power level. Default is 0.8.
alpha double The desired significance level. Default is 0.05.
hypothesis OneSampleHypothesis The alternative hypothesis (research hypothesis) to be tested.
return TTestPowerAnalysis

TTestPowerAnalysis() public method

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

TTestPowerAnalysis() public method

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