Description Usage Arguments Details Value Note Author(s) See Also Examples
The function graphoptBbd
creates the graphical layout of resultant Bayesian A-, or D-optimal block design on a separate pop-up GUI tcltk window.
1 | graphoptBbd(trt.N, blk.N, alpha, beta, OptdesF, Optcrit)
|
trt.N |
integer, specifying number of treatments, |
blk.N |
integer, specifying number of blocks, |
alpha |
numeric, representing parameter of beta distribution. |
beta |
numeric, representing parameter of beta distribution. |
OptdesF |
matrix, a |
Optcrit |
character specifying the optimality criteria to be used. Thus, |
Detail discussions concerning the constructions of a graphs can be found in igraph
R package.
Returns the graphical layout of the resultant Bayesian optimal block design 'OptdesF
' on a separate pop-up window. Furthermore, the function saves the graphical layout of the resultant Bayesain optimal block design in .pdf format in a temporary directory.
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.
Dibaba Bayisa Gemechu, Legesse Kassa Debusho, and Linda Haines
1 2 3 4 5 6 7 8 9 | ##To create the graphical layout of the D-optimal block design
##obtained using the treatment exchange algorithm for
trt.N <- 10 #Number of treatments
blk.N <- 10 #Number of blocks
alpha <- 0.1 #alpha value
beta <- 0.1 #beta value
OptdesF <- rbind(1:10, c(2:10,1)) #Bayesian A-optimal block design (loop design)
graphoptBbd(trt.N = 10, blk.N = 10, alpha = 0.1, beta = 0.1, OptdesF, Optcrit = "A")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.