graphsoptd.mae {soptdmaeA}R Documentation

Creates the graphical layout of resultant sequential optimal design

Description

Creates the graphical layout of resultant sequential A-, MV-, D- or E-optimal or near-optimal block or row-column design on a separate pop-up GUI tcltk window.

Usage

graphsoptd.mae(trt.N, blk.N, theta, soptdesF, Optcrit, strt, sary, dtype)

Arguments

trt.N

integer, specifying number of treatments v of resultant sequential optimal design, soptdesF.

blk.N

integer, specifying number of arrays b of resultant sequential optimal design, soptdesF.

theta

numeric, representing a function of the ratio of random array variance and random error variance. It takes any value between 0 and 1, inclusive.

soptdesF

matrix, a 2 x b obtained sequential optimal or near-optimal block or row-column design.

Optcrit

character specifying the optimality criteria to be used. Thus, Optcrit takes the letter "A", "MV", "D" and "E" for A-, MV-, D- and E-optimal or near-optimal block or row-column designs, respectively.

strt

a non-negative integer, specifying number of added treatments/conditions to the initial design.

sary

a non-negative integer, specifying number of added arrays to the initial design.

dtype

character, specifying the design type. For block designs, dtype = "blkd" and for row-column deigns, dtype = "rcd".

Details

Detail discussions concerning the constructions of graph can be found in igraph R package.

Value

Returns the graphical layout of the resultant sequential optimal or near-optimal block or row-column design 'soptdesF' on a separate pop-up window with the new edges (arrays) and vertices (treatments) added to the initial design coloured in red and brown, respectively, for separation purpose. Furthermore, the function graphsoptd.mae saves the graphical layout of the initial des0 and resultant sequential optimal or near-optimal design in .pdf format in a working subdirectory.

Note

When closing a pop-up window for graphical layout of the resultant designs (Graph plot), if the window is closed by clicking on the red button with "X" sign (top-right), the warning message "Warning message: In rm(list = cmd, envir = .tkplot.env): object 'tkp ...' not found" will occur in R console irrespective of what command is executed next. To resolve this warning message, click on "close" menu that is located at the top-left of the graph plot pop-up window when closing this window.

Author(s)

Dibaba Bayisa Gemechu, Legesse Kassa Debusho, and Linda Haines

See Also

igraph


[Package soptdmaeA version 1.0.0 Index]