Description Usage Arguments Details Value Author(s) See Also Examples
The function is a multistart version of searchMinimizer
which selects the best
root of the quasi-score (if there is any) or a local minimum from all found minima according to the criteria described
in the vignette.
1 2 3 |
x0 |
numeric, |
qsd |
object of class |
... |
arguments passed to |
nstart |
number of random samples from which to start local searches (if ' |
optInfo |
logical, |
multi.start |
logical, |
cores |
integer, number of local CPU cores used, default is |
cl |
cluster object, |
pl |
print level, use |
verbose |
if |
The function performs a number of local searches depending which local method 'method
' was passed to
searchMinimizer
. Either the starting points are given by 'x0
' or are generated as an augmented
design based on the sample set stored in 'qsd
'. The function evaluates all found solutions and selects the one which
is best according to the criteria defined in the vignette. If none of the criteria match, then the parameter for which the lowest value
of the criterion function was found is returned. Multistart searches can be done using a cluster object. Then for each generated/given obervation
a number of cores>1
multistart searches is performed in parallel if fun="mclapply"
using the local cores of each cluster node.
Object of class QSResult
and attribute 'roots
', i.e. the matrix of estimated parameters for which any of
the available minimization methods has been successfully applied. If 'codeoptInfo' is TRUE
, then the originally estimtation reuslts
are also returned. The best solution is stored as an attribute named 'par
' if found any.
M. Baaske
1 2 3 4 5 6 7 8 9 10 11 12 | data(normal)
x0 <- c("mu"=3.5,"sigma"=1.5)
S0 <- multiSearch(x0=x0,qsd,method=c("qscoring","bobyqa"),
opts=list("ftol_stop"=1e-9,"score_tol"=1e-3),nstart=4,
optInfo=TRUE,verbose=TRUE)
roots <- attr(S0,"roots")
id <- attr(roots,"id")
stopifnot(!is.na(id))
id # index of best root found in matrix roots
attr(roots,"par") # the final parameter estimate w.r.t. id
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.