Description Usage Arguments Details Value Author(s) References See Also Examples
findOptimalBlockDesign
finds a D-optimal or A-optimal block design for a Poisson generalised linear mixed model with gamma distributed random effects (Poisson-Gamma mixture) using simulated annealing.
1 2 3 4 |
numblock |
an integer specifying the number of blocks in the block design to be constructed. |
blksize |
an integer specifying the number of experimental units that are in each block. For this function, the block size is constant across all blocks. |
means |
a vector specifying the means for each treatment group. |
sigma |
a numeric indicating the within block standard deviation in excess of the Poisson residual error |
sigmaB |
a numeric indicating the between block standard deviation. |
probs |
a list of probabilities specifying the probability that each step of the simulated annealing substitutes a certain number of design points. The first entry corresponds to the probability that only one substitution is made in a simulated annealing step, the second is the probability that two substitutions are made and so on. By default this is set to c(1) which means that only one substitution is made in each simulated annealing step. |
criterion |
Optimality criterion. For D-optimality use |
link |
The link function used. Currently only |
trace |
a logical indicating whether the function should return information about the iterations of the simulated annealing algorithm. |
iter |
the number of simulated annealing iterations per round. This variable is passed to the |
temp |
starting temperature for simulated annealing algorithm. This variable is passed to the |
tmax |
the number of function evaluations at each temperature in the simulated annealing algorithm. This variable is passed to the |
silent |
a logical indicating whether any output should be returned. |
tol |
a numeric value indicating the numerical tolerance required to stop the simulated annealing algorithm from restarting |
maxtime |
a numeric value indicating the maximum amount of time the fiunction is allowed to take before stopping optimisation |
startdes |
either |
This function uses the simulated annealing algorithm provided in the optim
function to find optimal block designs for a Poisson generalised linear mixed model. The linear predictor for the experimental unit j in block i using this model is:
η_[R(i,j)] = μ + τ[R(i,j)] + B[i] + e[i,j]
where i = 1,...,b, j=1,...,k and there are b blocks each with k experimental units. R(i,j) is the treatment assigned to experimental unit j in block i.
design |
a matrix containing the optimal design. Each row corresponds to a single block. |
value |
the value of the D or A optimality criterion value for the optimal design, depending on whether |
iter |
lists the evolution of the criterion value through iterations of the simulated annealing algorithm. |
Stephen Bush (stephen.bush@uts.edu.au)
Katya Ruggiero (k.ruggiero@auckland.ac.nz)
Bush, S., and Ruggiero, K. (2016) Optimal block designs for experiments with responses drawn from a Poisson distribution, Under Review, preprint available at http://arxiv.org/abs/1601.00477
findOptimalExactDesign
, findOptimalApproxDesign
, updateDesign_BD
, objfnA_BD
, objfnD_BD
1 2 3 4 5 6 7 8 9 10 11 12 | ## Constructing a D-optimal block design with 4 blocks of size 3 with seven treatments
## with means c(5,5.5,6,5.5,7,10,4) with between block standard deviation 0.3
## and no overdispersion (sigma=0). In each round of simulated annealing, we use 1000
## iterations
findOptimalBlockDesign(numblock = 4, blksize = 3, means = c(5,5.5,6,5.5,7,10,4),
sigma = 0, sigmaB = 0.3,iter=1000)
## Constructing an A-optimal design with the same means
findOptimalBlockDesign(numblock = 4, blksize = 3, means = c(5,5.5,6,5.5,7,10,4),
sigma = 0, sigmaB = 0.3, criterion = "A",iter=1000)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.