You've already forked lazarus-ccr
LazStats: some refactoring of BlkANOVAUnit
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7487 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -712,28 +712,24 @@ procedure TBlksAnovaFrm.OneWayPlot;
|
||||
var
|
||||
i : integer;
|
||||
maxmean : double;
|
||||
XValue : DblDyneVec;
|
||||
setstring : string[11];
|
||||
plottype : integer;
|
||||
|
||||
begin
|
||||
plottype := 2;
|
||||
SetLength(XValue,Nf1cells);
|
||||
plotType := 2;
|
||||
if PlotMeans.Checked then plottype := 2;
|
||||
if Plot2DLines.Checked then plottype := 5;
|
||||
if Plot3DLines.Checked then plottype := 6;
|
||||
maxmean := 0.0;
|
||||
setstring := 'FACTOR A';
|
||||
GraphFrm.SetLabels[1] := setstring;
|
||||
|
||||
GraphFrm.SetLabels[1] := 'FACTOR A';
|
||||
SetLength(GraphFrm.YPoints,1,NF1cells);
|
||||
SetLength(GraphFrm.Xpoints,1,NF1cells);
|
||||
|
||||
maxmean := 0.0;
|
||||
for i := 1 to NF1cells do
|
||||
begin
|
||||
cellsums[i-1] := cellsums[i-1] / cellcnts[i-1];
|
||||
GraphFrm.Ypoints[0,i-1] := cellsums[i-1];
|
||||
if cellsums[i-1] > maxmean then maxmean := cellsums[i-1];
|
||||
XValue[i-1] := minF1 + i - 1;
|
||||
GraphFrm.Xpoints[0,i-1] := XValue[i-1];
|
||||
GraphFrm.Xpoints[0,i-1] := minF1 + i - 1;
|
||||
end;
|
||||
GraphFrm.nosets := 1;
|
||||
GraphFrm.nbars := NF1cells;
|
||||
@ -745,12 +741,12 @@ begin
|
||||
GraphFrm.miny := 0.0;
|
||||
GraphFrm.maxy := maxmean;
|
||||
GraphFrm.GraphType := plottype; // 3d Vertical Bar Chart
|
||||
GraphFrm.BackColor := clYellow;
|
||||
GraphFrm.WallColor := clBlack;
|
||||
GraphFrm.FloorColor := clLtGray;
|
||||
GraphFrm.BackColor := GRAPH_BACK_COLOR;
|
||||
GraphFrm.WallColor := GRAPH_WALL_COLOR;
|
||||
GraphFrm.FloorColor := GRAPH_FLOOR_COLOR;
|
||||
GraphFrm.ShowBackWall := true;
|
||||
GraphFrm.ShowModal;
|
||||
XValue := nil;
|
||||
|
||||
GraphFrm.Xpoints := nil;
|
||||
GraphFrm.Ypoints := nil;
|
||||
end;
|
||||
@ -1049,90 +1045,85 @@ procedure TBlksAnovaFrm.TwoWayPlot;
|
||||
var
|
||||
i, j : integer;
|
||||
maxmean, XBar : double;
|
||||
XValue : DblDyneVec;
|
||||
title : string;
|
||||
plottype : integer;
|
||||
setstring : string[11];
|
||||
|
||||
begin
|
||||
if CompError then
|
||||
exit;
|
||||
|
||||
SetLength(XValue,Nf1cells+Nf2cells);
|
||||
plottype := 2;
|
||||
if PlotMeans.Checked then plottype := 2;
|
||||
if Plot2DLines.Checked then plottype := 5;
|
||||
if Plot3DLines.Checked then plottype := 6;
|
||||
|
||||
// do Factor A first
|
||||
setstring := 'FACTOR A';
|
||||
GraphFrm.SetLabels[1] := setstring;
|
||||
GraphFrm.SetLabels[1] := 'FACTOR A';
|
||||
SetLength(GraphFrm.Xpoints, 1, NF1cells);
|
||||
SetLength(GraphFrm.Ypoints, 1, NF1cells);
|
||||
|
||||
maxmean := 0.0;
|
||||
SetLength(GraphFrm.Xpoints,1,NF1cells);
|
||||
SetLength(GraphFrm.Ypoints,1,NF1cells);
|
||||
for i := 1 to NF1cells do
|
||||
begin
|
||||
RowSums[i-1] := RowSums[i-1] / RowCount[i-1];
|
||||
GraphFrm.Ypoints[0,i-1] := RowSums[i-1];
|
||||
if RowSums[i-1] > maxmean then maxmean := RowSums[i-1];
|
||||
XValue[i-1] := minF1 + i - 1;
|
||||
GraphFrm.Xpoints[0,i-1] := XValue[i-1];
|
||||
GraphFrm.Xpoints[0,i-1] := minF1 + i - 1;
|
||||
end;
|
||||
|
||||
GraphFrm.nosets := 1;
|
||||
GraphFrm.nbars := NF1cells;
|
||||
GraphFrm.Heading := Factor1.Text;
|
||||
title := Factor1.Text + ' Codes';
|
||||
GraphFrm.XTitle := title;
|
||||
GraphFrm.XTitle := Factor1.Text + ' Codes';
|
||||
GraphFrm.YTitle := 'Mean';
|
||||
GraphFrm.barwideprop := 0.5;
|
||||
GraphFrm.AutoScaled := false;
|
||||
GraphFrm.miny := 0.0;
|
||||
GraphFrm.maxy := maxmean;
|
||||
GraphFrm.GraphType := plottype;
|
||||
GraphFrm.BackColor := clYellow;
|
||||
GraphFrm.WallColor := clBlack;
|
||||
GraphFrm.FloorColor := clLtGray;
|
||||
GraphFrm.BackColor := GRAPH_BACK_COLOR;
|
||||
GraphFrm.WallColor := GRAPH_WALL_COLOR;
|
||||
GraphFrm.FloorColor := GRAPH_FLOOR_COLOR;
|
||||
GraphFrm.ShowBackWall := true;
|
||||
GraphFrm.ShowModal;
|
||||
if GraphFrm.ShowModal <> mroK then
|
||||
exit;
|
||||
|
||||
// do Factor B next
|
||||
setstring := 'FACTOR B';
|
||||
GraphFrm.SetLabels[1] := setstring;
|
||||
GraphFrm.SetLabels[1] := 'FACTOR B';
|
||||
SetLength(GraphFrm.Xpoints, 1, NF2cells);
|
||||
SetLength(GraphFrm.Ypoints, 1, NF2cells);
|
||||
|
||||
maxmean := 0.0;
|
||||
SetLength(GraphFrm.Xpoints,1,NF2cells);
|
||||
SetLength(GraphFrm.Ypoints,1,NF2cells);
|
||||
for i := 1 to NF2cells do
|
||||
begin
|
||||
ColSums[i-1] := ColSums[i-1] / ColCount[i-1];
|
||||
GraphFrm.Ypoints[0,i-1] := ColSums[i-1];
|
||||
if ColSums[i-1] > maxmean then maxmean := ColSums[i-1];
|
||||
XValue[i-1] := minF1 + i - 1;
|
||||
GraphFrm.Xpoints[0,i-1] := XValue[i-1];
|
||||
GraphFrm.Xpoints[0,i-1] := minF1 + i - 1;
|
||||
end;
|
||||
|
||||
GraphFrm.nosets := 1;
|
||||
GraphFrm.nbars := NF2cells;
|
||||
GraphFrm.Heading := Factor2.Text;
|
||||
title := Factor2.Text + ' Codes';
|
||||
GraphFrm.XTitle := title;
|
||||
GraphFrm.XTitle := Factor2.Text + ' Codes';
|
||||
GraphFrm.YTitle := 'Mean';
|
||||
GraphFrm.barwideprop := 0.5;
|
||||
GraphFrm.AutoScaled := false;
|
||||
GraphFrm.miny := 0.0;
|
||||
GraphFrm.maxy := maxmean;
|
||||
GraphFrm.GraphType := plottype;
|
||||
GraphFrm.BackColor := clYellow;
|
||||
GraphFrm.WallColor := clBlack;
|
||||
GraphFrm.FloorColor := clLtGray;
|
||||
GraphFrm.BackColor := GRAPH_BACK_COLOR;
|
||||
GraphFrm.WallColor := GRAPH_WALL_COLOR;
|
||||
GraphFrm.FloorColor := GRAPH_FLOOR_COLOR;
|
||||
GraphFrm.ShowBackWall := true;
|
||||
GraphFrm.ShowModal;
|
||||
if GraphFrm.ShowModal <> mrOK then
|
||||
exit;
|
||||
|
||||
// do Factor A x B Interaction next
|
||||
SetLength(GraphFrm.Ypoints, NF1cells, NF2cells);
|
||||
SetLength(GraphFrm.Xpoints, 1, NF2cells);
|
||||
maxmean := 0.0;
|
||||
SetLength(GraphFrm.Ypoints,NF1cells,NF2cells);
|
||||
SetLength(GraphFrm.Xpoints,1,NF2cells);
|
||||
for i := 1 to NF1cells do
|
||||
begin
|
||||
setstring := Factor1.Text + ' ' + IntToStr(i);
|
||||
GraphFrm.SetLabels[i] := setstring;
|
||||
GraphFrm.SetLabels[i] := Factor1.Text + ' ' + IntToStr(i);
|
||||
for j := 1 to NF2cells do
|
||||
begin
|
||||
XBar := sums[i-1,j-1] / counts[i-1,j-1];
|
||||
@ -1140,29 +1131,26 @@ begin
|
||||
GraphFrm.Ypoints[i-1,j-1] := XBar;
|
||||
end;
|
||||
end;
|
||||
|
||||
for j := 1 to NF2cells do
|
||||
begin
|
||||
XValue[j-1] := minF2 + j - 1;
|
||||
GraphFrm.Xpoints[0,j-1] := XValue[j-1];
|
||||
end;
|
||||
GraphFrm.Xpoints[0,j-1] := minF2 + j - 1;
|
||||
|
||||
GraphFrm.nosets := NF1cells;
|
||||
GraphFrm.nbars := NF2cells;
|
||||
GraphFrm.Heading := 'Factor A x Factor B';
|
||||
title := Factor2.Text + ' Codes';
|
||||
GraphFrm.XTitle := title;
|
||||
GraphFrm.XTitle := Factor2.Text + ' Codes';
|
||||
GraphFrm.YTitle := 'Mean';
|
||||
GraphFrm.barwideprop := 0.5;
|
||||
GraphFrm.AutoScaled := false;
|
||||
GraphFrm.miny := 0.0;
|
||||
GraphFrm.maxy := maxmean;
|
||||
GraphFrm.GraphType := plottype;
|
||||
GraphFrm.BackColor := clYellow;
|
||||
GraphFrm.WallColor := clBlack;
|
||||
GraphFrm.FloorColor := clLtGray;
|
||||
GraphFrm.BackColor := GRAPH_BACK_COLOR;
|
||||
GraphFrm.WallColor := GRAPH_WALL_COLOR;
|
||||
GraphFrm.FloorColor := GRAPH_FLOOR_COLOR;
|
||||
GraphFrm.ShowBackWall := true;
|
||||
GraphFrm.ShowModal;
|
||||
XValue := nil;
|
||||
|
||||
GraphFrm.Xpoints := nil;
|
||||
GraphFrm.Ypoints := nil;
|
||||
end;
|
||||
@ -1808,122 +1796,112 @@ procedure TBlksAnovaFrm.ThreeWayPlot;
|
||||
var
|
||||
i, j, k : integer;
|
||||
maxmean, XBar : double;
|
||||
XValue : DblDyneVec;
|
||||
title : string;
|
||||
plottype : integer;
|
||||
setstring : string[11];
|
||||
|
||||
begin
|
||||
if CompError then exit;
|
||||
SetLength(XValue,totcells);
|
||||
|
||||
plottype := 2;
|
||||
if PlotMeans.Checked then plottype := 2;
|
||||
if Plot2DLines.Checked then plottype := 5;
|
||||
if Plot3DLines.Checked then plottype := 6;
|
||||
|
||||
// do Factor A first
|
||||
setstring := 'FACTOR A';
|
||||
GraphFrm.SetLabels[1] := setstring;
|
||||
maxmean := 0.0;
|
||||
GraphFrm.SetLabels[1] := 'FACTOR A';
|
||||
SetLength(GraphFrm.Xpoints,1,NF1cells);
|
||||
SetLength(GraphFrm.Ypoints,1,NF1cells);
|
||||
maxmean := 0.0;
|
||||
for i := 0 to NF1cells-1 do
|
||||
begin
|
||||
RowSums[i] := RowSums[i] / RowCount[i];
|
||||
GraphFrm.Ypoints[0,i] := RowSums[i];
|
||||
if RowSums[i] > maxmean then maxmean := RowSums[i];
|
||||
XValue[i] := minF1 + i;
|
||||
GraphFrm.Xpoints[0,i] := XValue[i];
|
||||
GraphFrm.Xpoints[0,i] := minF1 + i;
|
||||
end;
|
||||
|
||||
GraphFrm.nosets := 1;
|
||||
GraphFrm.nbars := NF1cells;
|
||||
GraphFrm.Heading := Factor1.Text;
|
||||
title := Factor1.Text + ' Codes';
|
||||
GraphFrm.XTitle := title;
|
||||
GraphFrm.XTitle := Factor1.Text + ' Codes';
|
||||
GraphFrm.YTitle := 'Mean';
|
||||
GraphFrm.barwideprop := 0.5;
|
||||
GraphFrm.AutoScaled := false;
|
||||
GraphFrm.miny := 0.0;
|
||||
GraphFrm.maxy := maxmean;
|
||||
GraphFrm.GraphType := plottype;
|
||||
GraphFrm.BackColor := clYellow;
|
||||
GraphFrm.WallColor := clBlack;
|
||||
GraphFrm.FloorColor := clLtGray;
|
||||
GraphFrm.BackColor := GRAPH_BACK_COLOR;
|
||||
GraphFrm.WallColor := GRAPH_WALL_COLOR;
|
||||
GraphFrm.FloorColor := GRAPH_FLOOR_COLOR;
|
||||
GraphFrm.ShowBackWall := true;
|
||||
GraphFrm.ShowModal;
|
||||
if GraphFrm.ShowModal <> mrOK then
|
||||
exit;
|
||||
|
||||
// do Factor B next
|
||||
setstring := 'FACTOR B';
|
||||
GraphFrm.SetLabels[1] := setstring;
|
||||
GraphFrm.SetLabels[1] := 'FACTOR B';
|
||||
maxmean := 0.0;
|
||||
SetLength(GraphFrm.Xpoints,1,NF2cells);
|
||||
SetLength(GraphFrm.Ypoints,1,NF2cells);
|
||||
SetLength(GraphFrm.Xpoints, 1, NF2cells);
|
||||
SetLength(GraphFrm.Ypoints, 1, NF2cells);
|
||||
for i := 0 to NF2cells-1 do
|
||||
begin
|
||||
ColSums[i] := ColSums[i] / ColCount[i];
|
||||
GraphFrm.Ypoints[0,i] := ColSums[i];
|
||||
if ColSums[i] > maxmean then maxmean := ColSums[i];
|
||||
XValue[i] := minF2 + i;
|
||||
GraphFrm.Xpoints[0,i] := XValue[i];
|
||||
GraphFrm.Xpoints[0,i] := minF2 + i;
|
||||
end;
|
||||
GraphFrm.nosets := 1;
|
||||
GraphFrm.nbars := NF2cells;
|
||||
GraphFrm.Heading := Factor2.Text;
|
||||
title := Factor2.Text + ' Codes';
|
||||
GraphFrm.XTitle := title;
|
||||
GraphFrm.XTitle := Factor2.Text + ' Codes';
|
||||
GraphFrm.YTitle := 'Mean';
|
||||
GraphFrm.barwideprop := 0.5;
|
||||
GraphFrm.AutoScaled := false;
|
||||
GraphFrm.miny := 0.0;
|
||||
GraphFrm.maxy := maxmean;
|
||||
GraphFrm.GraphType := plottype;
|
||||
GraphFrm.BackColor := clYellow;
|
||||
GraphFrm.WallColor := clBlack;
|
||||
GraphFrm.FloorColor := clLtGray;
|
||||
GraphFrm.BackColor := GRAPH_BACK_COLOR;
|
||||
GraphFrm.WallColor := GRAPH_WALL_COLOR;
|
||||
GraphFrm.FloorColor := GRAPH_FLOOR_COLOR;
|
||||
GraphFrm.ShowBackWall := true;
|
||||
GraphFrm.ShowModal;
|
||||
if GraphFrm.ShowModal <> mrOK then
|
||||
exit;
|
||||
|
||||
// do Factor C next
|
||||
setstring := 'FACTOR C';
|
||||
GraphFrm.SetLabels[1] := setstring;
|
||||
GraphFrm.SetLabels[1] := 'FACTOR C';
|
||||
maxmean := 0.0;
|
||||
SetLength(GraphFrm.Xpoints,1,NF3cells);
|
||||
SetLength(GraphFrm.Ypoints,1,NF3cells);
|
||||
SetLength(GraphFrm.Xpoints, 1, NF3cells);
|
||||
SetLength(GraphFrm.Ypoints, 1, NF3cells);
|
||||
for i := 0 to NF3cells-1 do
|
||||
begin
|
||||
SlcSums[i] := SlcSums[i] / SlcCount[i];
|
||||
GraphFrm.Ypoints[0,i] := SlcSums[i];
|
||||
if SlcSums[i] > maxmean then maxmean := SlcSums[i];
|
||||
XValue[i] := minF3 + i;
|
||||
GraphFrm.Xpoints[0,i] := XValue[i];
|
||||
GraphFrm.Xpoints[0,i] := minF3 + i;
|
||||
end;
|
||||
GraphFrm.nosets := 1;
|
||||
GraphFrm.nbars := NF3cells;
|
||||
GraphFrm.Heading := Factor3.Text;
|
||||
title := Factor2.Text + ' Codes';
|
||||
GraphFrm.XTitle := title;
|
||||
GraphFrm.XTitle := Factor2.Text + ' Codes';
|
||||
GraphFrm.YTitle := 'Mean';
|
||||
GraphFrm.barwideprop := 0.5;
|
||||
GraphFrm.AutoScaled := false;
|
||||
GraphFrm.miny := 0.0;
|
||||
GraphFrm.maxy := maxmean;
|
||||
GraphFrm.GraphType := plottype;
|
||||
GraphFrm.BackColor := clYellow;
|
||||
GraphFrm.WallColor := clBlack;
|
||||
GraphFrm.FloorColor := clLtGray;
|
||||
GraphFrm.BackColor := GRAPH_BACK_COLOR;
|
||||
GraphFrm.WallColor := GRAPH_WALL_COLOR;
|
||||
GraphFrm.FloorColor := GRAPH_FLOOR_COLOR;
|
||||
GraphFrm.ShowBackWall := true;
|
||||
GraphFrm.ShowModal;
|
||||
if GraphFrm.ShowModal <> mrOK then
|
||||
exit;
|
||||
|
||||
// do Factor A x B Interaction within each slice next
|
||||
SetLength(GraphFrm.Ypoints,NF1cells,NF2cells);
|
||||
SetLength(GraphFrm.Xpoints,1,NF2cells);
|
||||
SetLength(GraphFrm.Ypoints, NF1cells, NF2cells);
|
||||
SetLength(GraphFrm.Xpoints, 1, NF2cells);
|
||||
for k := 0 to NF3cells-1 do
|
||||
begin
|
||||
maxmean := 0.0;
|
||||
for i := 0 to NF1cells-1 do
|
||||
begin
|
||||
setstring := Factor1.Text + ' ' + IntToStr(i+1);
|
||||
GraphFrm.SetLabels[i+1] := setstring;
|
||||
GraphFrm.SetLabels[i+1] := Factor1.Text + ' ' + IntToStr(i+1);
|
||||
for j := 0 to NF2cells-1 do
|
||||
begin
|
||||
XBar := wsum[i,j,k] / ncnt[i,j,k];
|
||||
@ -1932,39 +1910,35 @@ begin
|
||||
end;
|
||||
end;
|
||||
for j := 0 to NF2cells-1 do
|
||||
begin
|
||||
XValue[j] := minF2 + j ;
|
||||
GraphFrm.Xpoints[0,j] := XValue[j];
|
||||
end;
|
||||
GraphFrm.Xpoints[0,j] := minF2 + j ;
|
||||
|
||||
GraphFrm.nosets := NF1cells;
|
||||
GraphFrm.nbars := NF2cells;
|
||||
GraphFrm.Heading := 'Factor A x Factor B Within Slice' + IntToStr(k);
|
||||
title := Factor2.Text + ' Codes';
|
||||
GraphFrm.XTitle := title;
|
||||
GraphFrm.XTitle := Factor2.Text + ' Codes';
|
||||
GraphFrm.YTitle := 'Mean';
|
||||
GraphFrm.barwideprop := 0.5;
|
||||
GraphFrm.AutoScaled := false;
|
||||
GraphFrm.miny := 0.0;
|
||||
GraphFrm.maxy := maxmean;
|
||||
GraphFrm.GraphType := plottype;
|
||||
GraphFrm.BackColor := clYellow;
|
||||
GraphFrm.WallColor := clBlack;
|
||||
GraphFrm.FloorColor := clLtGray;
|
||||
GraphFrm.BackColor := GRAPH_BACK_COLOR;
|
||||
GraphFrm.WallColor := GRAPH_WALL_COLOR;
|
||||
GraphFrm.FloorColor := GRAPH_FLOOR_COLOR;
|
||||
GraphFrm.ShowBackWall := true;
|
||||
GraphFrm.ShowModal;
|
||||
if GraphFrm.ShowModal <> mrOK then
|
||||
exit;
|
||||
end;
|
||||
|
||||
// do Factor A x C Interaction within each Column next
|
||||
SetLength(GraphFrm.Ypoints,NF1cells,NF3cells);
|
||||
SetLength(GraphFrm.Xpoints,1,NF3cells);
|
||||
SetLength(GraphFrm.Ypoints, NF1cells, NF3cells);
|
||||
SetLength(GraphFrm.Xpoints, 1, NF3cells);
|
||||
for j := 0 to NF2cells-1 do
|
||||
begin
|
||||
maxmean := 0.0;
|
||||
for i := 0 to NF1cells-1 do
|
||||
begin
|
||||
setstring := Factor1.Text + ' ' + IntToStr(i+1);
|
||||
GraphFrm.SetLabels[i+1] := setstring;
|
||||
GraphFrm.SetLabels[i+1] := Factor1.Text + ' ' + IntToStr(i+1);
|
||||
for k := 0 to NF3cells-1 do
|
||||
begin
|
||||
XBar := wsum[i,j,k] / ncnt[i,j,k];
|
||||
@ -1973,39 +1947,35 @@ begin
|
||||
end;
|
||||
end;
|
||||
for k := 0 to NF3cells-1 do
|
||||
begin
|
||||
XValue[k] := minF3 + k;
|
||||
GraphFrm.Xpoints[0,k] := XValue[k];
|
||||
end;
|
||||
GraphFrm.Xpoints[0,k] := minF3 + k;
|
||||
|
||||
GraphFrm.nosets := NF1cells;
|
||||
GraphFrm.nbars := NF3cells;
|
||||
GraphFrm.Heading := 'Factor A x Factor C Within Column ' + IntToStr(j+1);
|
||||
title := Factor3.Text + ' Codes';
|
||||
GraphFrm.XTitle := title;
|
||||
GraphFrm.XTitle := Factor3.Text + ' Codes';
|
||||
GraphFrm.YTitle := 'Mean';
|
||||
GraphFrm.barwideprop := 0.5;
|
||||
GraphFrm.AutoScaled := false;
|
||||
GraphFrm.miny := 0.0;
|
||||
GraphFrm.maxy := maxmean;
|
||||
GraphFrm.GraphType := plottype;
|
||||
GraphFrm.BackColor := clYellow;
|
||||
GraphFrm.WallColor := clBlack;
|
||||
GraphFrm.FloorColor := clLtGray;
|
||||
GraphFrm.BackColor := GRAPH_BACK_COLOR;
|
||||
GraphFrm.WallColor := GRAPH_WALL_COLOR;
|
||||
GraphFrm.FloorColor := GRAPH_FLOOR_COLOR;
|
||||
GraphFrm.ShowBackWall := true;
|
||||
GraphFrm.ShowModal;
|
||||
if GraphFrm.ShowModal <> mrOK then
|
||||
exit;
|
||||
end;
|
||||
|
||||
// do Factor B x C Interaction within each row next
|
||||
SetLength(GraphFrm.Ypoints,NF2cells,NF3cells);
|
||||
SetLength(GraphFrm.Xpoints,1,NF3cells);
|
||||
SetLength(GraphFrm.Ypoints, NF2cells, NF3cells);
|
||||
SetLength(GraphFrm.Xpoints, 1, NF3cells);
|
||||
for i := 0 to NF1cells-1 do
|
||||
begin
|
||||
maxmean := 0.0;
|
||||
for j := 0 to NF2cells-1 do
|
||||
begin
|
||||
setstring := Factor2.Text + ' ' + IntToStr(j+1);
|
||||
GraphFrm.SetLabels[j+1] := setstring;
|
||||
GraphFrm.SetLabels[j+1] := Factor2.Text + ' ' + IntToStr(j+1);
|
||||
for k := 0 to NF3cells-1 do
|
||||
begin
|
||||
XBar := wsum[i,j,k] / ncnt[i,j,k];
|
||||
@ -2014,31 +1984,28 @@ begin
|
||||
end;
|
||||
end;
|
||||
for j := 0 to NF2cells-1 do
|
||||
begin
|
||||
XValue[j] := minF2 + j;
|
||||
GraphFrm.Xpoints[0,j] := XValue[j];
|
||||
end;
|
||||
GraphFrm.Xpoints[0,j] := minF2 + j;
|
||||
|
||||
GraphFrm.nosets := NF2cells;
|
||||
GraphFrm.nbars := NF3cells;
|
||||
GraphFrm.Heading := 'Factor B x Factor C Within Row ' + IntToStr(i+1);
|
||||
title := Factor3.Text + ' Codes';
|
||||
GraphFrm.XTitle := title;
|
||||
GraphFrm.XTitle := Factor3.Text + ' Codes';
|
||||
GraphFrm.YTitle := 'Mean';
|
||||
GraphFrm.barwideprop := 0.5;
|
||||
GraphFrm.AutoScaled := false;
|
||||
GraphFrm.miny := 0.0;
|
||||
GraphFrm.maxy := maxmean;
|
||||
GraphFrm.GraphType := plottype;
|
||||
GraphFrm.BackColor := clYellow;
|
||||
GraphFrm.WallColor := clBlack;
|
||||
GraphFrm.FloorColor := clLtGray;
|
||||
GraphFrm.BackColor := GRAPH_BACK_COLOR;
|
||||
GraphFrm.WallColor := GRAPH_WALL_COLOR;
|
||||
GraphFrm.FloorColor := GRAPH_FLOOR_COLOR;
|
||||
GraphFrm.ShowBackWall := true;
|
||||
GraphFrm.ShowModal;
|
||||
if GraphFrm.ShowModal <> mrOK then
|
||||
exit;
|
||||
end; // next row
|
||||
|
||||
GraphFrm.Xpoints := nil;
|
||||
GraphFrm.Ypoints := nil;
|
||||
XValue := nil;
|
||||
end;
|
||||
//-------------------------------------------------------------------
|
||||
procedure TBlksAnovaFrm.TwoWayContrasts(AReport: TStrings);
|
||||
|
Reference in New Issue
Block a user