## An example on how to create the design in Hyun and Wong (2015)
## An initial guess from Table 1:
Theta1 <- c(1.563, 1.790, 8.442, 0.137)
#########################################################
## Table 2 first row
# creating optimal design for estimating parameters: xi_D
res <- multica_4pl(lx = log(.001),
ux = log(1000),
param = Theta1,
k = 4,
lambda = c(1, 0, 0),
delta = -1,
iter = 150,
control = list(seed = 1366, plot_cost = TRUE))
## Not run:
# #######################################################
# ## finding multiple objective optimal design: example 1, Table 3
# res1 <- multica_4pl(lx = log(.001),
# ux = log(1000),
# param = Theta1,
# k = 4, lambda = c(0.05, 0.05, .90),
# delta = -1, iter = 400,
# control = list(seed = 1366))
#
# plot(res1)
#
# #######################################################
# ## finding multiple objective optimal design: example 2, Table 3
# res2 <- multica_4pl(lx = log(.001),
# ux = log(1000),
# param = c(16.8, -1, 4.248, 22),
# k = 4, lambda = c(0, 0.1, .9),
# delta = 5, iter = 200,
# control = list(seed = 1366))
# plot(res2)
#
# ##########################################################
# ## how to transfer from Hill model to 4-parameter logistic model
# ## parameters for Hill model
# a <- 0.008949 # ED50
# b <- -1.79 # Hill constant
# c <- 0.137 # lower limit
# d <- 1.7 # upper limit
# D <- c(.001, 1000) ## dose in mg
# ## Hill_para is c(a, b, c, d)
# res2 <- multica_4pl(lx = log(.001),
# ux = log(1000),
# param = c(d - c, -b, b * log(a), c),
# k = 4, lambda = c(0.05, 0.05, .90),
# delta = -1, iter = 400,
# control = list(seed = 1366))
# exp(res2$evol[[length(res2$evol)]]$x) # dose level in mg
# ## End(Not run)
Run the code above in your browser using DataLab