aboutsummaryrefslogtreecommitdiff
path: root/R/multistart.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2022-10-29 00:36:22 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2022-10-29 00:36:22 +0200
commit59566e315c5d05a0aa4a46ab80c5fda33c5c2f1e (patch)
tree91eb7671c50b2b5563a58344723304d159524f6d /R/multistart.R
parentf820bf5b91be0f589de16c3e3250f5f79672df75 (diff)
Update multistart docs
Diffstat (limited to 'R/multistart.R')
-rw-r--r--R/multistart.R4
1 files changed, 2 insertions, 2 deletions
diff --git a/R/multistart.R b/R/multistart.R
index 14683c11..61ef43dc 100644
--- a/R/multistart.R
+++ b/R/multistart.R
@@ -40,7 +40,7 @@
#' f_mmkin <- mmkin("DFOP", dmta_ds, error_model = "tc", cores = 7, quiet = TRUE)
#' f_saem_full <- saem(f_mmkin)
#' f_saem_full_multi <- multistart(f_saem_full, n = 16, cores = 16)
-#' parplot(f_saem_full_multi, lpos = "bottomleft")
+#' parplot(f_saem_full_multi, lpos = "topleft")
#' illparms(f_saem_full)
#'
#' f_saem_reduced <- update(f_saem_full, no_random_effect = "log_k2")
@@ -50,9 +50,9 @@
#' # nodes, as it is referred to when updating the saem object on the nodes.
#' library(parallel)
#' cl <- makePSOCKcluster(12)
-#' clusterExport(cl, "f_mmkin")
#' f_saem_reduced_multi <- multistart(f_saem_reduced, n = 16, cluster = cl)
#' parplot(f_saem_reduced_multi, lpos = "topright")
+#' stopCluster(cl)
#' }
multistart <- function(object, n = 50,
cores = if (Sys.info()["sysname"] == "Windows") 1 else parallel::detectCores(),

Contact - Imprint