This function uses generalised simulated annealing to optimise
a LogisticNormal model to be as close as possible
to the given prior quantiles.
Quantiles2LogisticNormal(
dosegrid,
refDose,
lower,
median,
upper,
level = 0.95,
logNormal = FALSE,
parstart = NULL,
parlower = c(-10, -10, 0, 0, -0.95),
parupper = c(10, 10, 10, 10, 0.95),
seed = 12345,
verbose = TRUE,
control = list(threshold.stop = 0.01, maxit = 50000, temperature = 50000, max.time =
600)
)a list with the best approximating model
(LogisticNormal or
LogisticLogNormal), the resulting quantiles, the
required quantiles and the distance to the required quantiles,
as well as the final parameters (which could be used for running the
algorithm a second time)
the dose grid
the reference dose
the lower quantiles
the medians
the upper quantiles
the credible level of the (lower, upper) intervals (default: 0.95)
use the log-normal prior? (not default) otherwise, the normal prior for the logistic regression coefficients is used
starting values for the parameters. By default, these are determined from the medians supplied.
lower bounds on the parameters (intercept alpha and the slope beta, the corresponding standard deviations and the correlation.)
upper bounds on the parameters
seed for random number generation
be verbose? (default)
additional options for the optimisation routine, see
GenSA for more details