Function to compute actual or hypothetical powers for a one way ANOVA.
int ocmath_anova_powers1( const double dSigLevel, const double * pSampleSizes, const UINT nSize, ANOVAPowerOpts * tPowerOpts, double * pPowers )
Returns STATS_NO_ERROR on successful exit and a non-zero STATS error code on failure.
EX1
void ocmath_anova_powers1_ex1() { double dSigLevel = 0.05; vector vSampleSizes; ANOVAPowerOpts tPowerOpts; vector vPowers; vSampleSizes.SetSize(3); vSampleSizes[0] = 2; vSampleSizes[1] = 4; vSampleSizes[2] = 6; tPowerOpts.Level = 5; tPowerOpts.CSS = 4; tPowerOpts.SD = 2.34; vPowers.SetSize(vSampleSizes.GetSize()); int nRet = ocmath_anova_powers1( dSigLevel, vSampleSizes, vSampleSizes.GetSize(), &tPowerOpts, vPowers ); out_int("nRet=", nRet); }
origin.h