From d25974f643ee46b7cd5ccd8331dd7bb0b14ab27a Mon Sep 17 00:00:00 2001
From: Johannes Ranke
Date: Wed, 26 Oct 2022 09:36:44 +0200
Subject: Don't test parhist and llhist on travis, docs
---
docs/dev/reference/multistart.html | 31 ++++++++++++++++++++++++-------
1 file changed, 24 insertions(+), 7 deletions(-)
(limited to 'docs/dev/reference/multistart.html')
diff --git a/docs/dev/reference/multistart.html b/docs/dev/reference/multistart.html
index 714cb2fc..83af8dbb 100644
--- a/docs/dev/reference/multistart.html
+++ b/docs/dev/reference/multistart.html
@@ -112,7 +112,17 @@ mixed-effects models by Duchesne et al (2021).
multistart(object, n = 50, cores = 1, cluster = NULL, ...)
# S3 method for multistart
-print(x, ...)
+print(x, ...)
+
+best(object, ...)
+
+# S3 method for default
+best(object, ...)
+
+which.best(object, ...)
+
+# S3 method for default
+which.best(object, ...)
@@ -149,6 +159,12 @@ for parallel execution.
A list of saem.mmkin objects, with class attributes
'multistart.saem.mmkin' and 'multistart'.
+
+
+
The object with the highest likelihood
+
+
+
The index of the object with the highest likelihood
Details
@@ -187,11 +203,14 @@ doi: 10.1186/s12859-021-04373-4.
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)
-
#> Warning: all scheduled cores encountered errors in user code
parhist(f_saem_full_multi, lpos = "bottomright")
-
#> Error in UseMethod("parms", object): no applicable method for 'parms' applied to an object of class "try-error"
+

+
illparms(f_saem_full)
+
#> [1] "sd(log_k2)"
-
f_saem_reduced <- update(f_saem_full, covariance.model = diag(c(1, 1, 0, 1)))
+
f_saem_reduced <- update(f_saem_full, no_random_effect = "log_k2")
+
illparms(f_saem_reduced)
+
#> character(0)
# On Windows, we need to create a cluster first. When working with
# such a cluster, we need to export the mmkin object to the cluster
# nodes, as it is referred to when updating the saem object on the nodes.
@@ -200,10 +219,8 @@ doi: 10.1186/s12859-021-04373-4.
clusterExport(cl, "f_mmkin")
#> Error in get(name, envir = envir): object 'f_mmkin' not found
f_saem_reduced_multi <- multistart(f_saem_reduced, n = 16, cluster = cl)
-
#> Error in checkForRemoteErrors(val): 12 nodes produced errors; first error: object 'f_mmkin' not found
parhist(f_saem_reduced_multi, lpos = "bottomright")
-
#> Error in parhist(f_saem_reduced_multi, lpos = "bottomright"): object 'f_saem_reduced_multi' not found
-
#> Warning: calling par(new=TRUE) with no plot
+
# }
--
cgit v1.2.1