graphoptrcd.mae: Creates the graphical layout of resultant optimal row-column...

Description Usage Arguments Details Value Note Author(s) See Also Examples

Description

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

Usage

1
graphoptrcd.mae(trt.N, col.N, theta, OptdesF, Optcrit, cbVal2)

Arguments

trt.N

integer, specifying number of treatments, v.

col.N

integer, specifying number of arrays, b.

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.

OptdesF

matrix, a 2 x b obtained optimal or near-optimal 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 row-column designs, respectively.

cbVal2

checkbox value. It takes a value of zero or one. The default value of cbVal2 is 0. Thus, if cbVal2 = 0, the function will display the graphical layout of the resultant optimal design generated using the treatment exchange algorithm. Similarly, if cbVal2 = 1, the function will display the graphical layout of the resultant optimal design generated using the array exchange algorithm.

Details

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

Value

Returns the graphical layout of the resultant optimal or near-optimal row-column design 'OptdesF' on a separate pop-up window. Furthermore, the function graphoptrcd.mae saves the graphical layout of the resultant optimal or near-optimal row-column 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)

Legesse Kassa Debusho, Dibaba Bayisa Gemechu, and Linda Haines

See Also

igraph

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
    ##To create the graphical layout of the D-optimal row-column design
    ##obtained using the treatment exchange algorithm for 
    
    trt.N <- 10  #Number of treatments
    
    col.N <- 10  #Number of arrays
    
    theta <- 0.2 #theta value 
    
    OptdesF <- rbind(1:10, c(2:10, 1)) #D-optimal design (loop design)

    graphoptrcd.mae(trt.N = 10, col.N = 10, theta = 0.2, OptdesF, Optcrit = "D", cbVal2 = 0)

optrcdmaeAT documentation built on May 1, 2019, 7:56 p.m.