using Dew.Stats.Units;
using Dew.Stats;
using Dew.Math;
namespace Dew.Examples
{
private void Example()
{
TMtxAnova an1 =
new TMtxAnova(
this);
try
{
an1.Data.SetIt(6, 2,
false,
new double[] { 1, 2,
2, 3,
5, 7,
12, 1,
5, 8,
3, 8 });
an1.IsAnova1 =
false;
// do two-way ANOVA
an1.Replications = 3;
// three rows per "group"
// output ANOVA table to grid1
an1.Recalc();
double aresult = an1.Anova2Res.FCrit;
}
finally
{
an1.Free();
}
}
}