From 59566e315c5d05a0aa4a46ab80c5fda33c5c2f1e Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Sat, 29 Oct 2022 00:36:22 +0200 Subject: Update multistart docs --- docs/dev/reference/Rplot001.png | Bin 19755 -> 20021 bytes docs/dev/reference/Rplot002.png | Bin 17365 -> 17243 bytes docs/dev/reference/index.html | 8 +- docs/dev/reference/logLik.saem.mmkin.html | 2 +- docs/dev/reference/multistart-1.png | Bin 59284 -> 60852 bytes docs/dev/reference/multistart-2.png | Bin 54871 -> 54922 bytes docs/dev/reference/multistart.html | 9 +- docs/dev/reference/parplot.html | 172 ++++++++++++++++++++++++++++++ docs/dev/reference/status.html | 171 +++++++++++++++++++++++++++++ docs/dev/reference/summary.mmkin.html | 17 +-- 10 files changed, 362 insertions(+), 17 deletions(-) create mode 100644 docs/dev/reference/parplot.html create mode 100644 docs/dev/reference/status.html (limited to 'docs/dev/reference') diff --git a/docs/dev/reference/Rplot001.png b/docs/dev/reference/Rplot001.png index f7b4238e..6841f086 100644 Binary files a/docs/dev/reference/Rplot001.png and b/docs/dev/reference/Rplot001.png differ diff --git a/docs/dev/reference/Rplot002.png b/docs/dev/reference/Rplot002.png index 018559d0..11f6a1cd 100644 Binary files a/docs/dev/reference/Rplot002.png and b/docs/dev/reference/Rplot002.png differ diff --git a/docs/dev/reference/index.html b/docs/dev/reference/index.html index 3d9d40b7..0fac6842 100644 --- a/docs/dev/reference/index.html +++ b/docs/dev/reference/index.html @@ -114,9 +114,9 @@ degradation models and one or more error models

Extract model parameters

-

convergence() print(<convergence.mmkin>)

+

status() print(<status.mmkin>) print(<status.mhmkin>)

-

Method to get convergence information

+

Method to get status information for fit array objects

illparms() print(<illparms.mmkin>) print(<illparms.mhmkin>)

@@ -253,9 +253,9 @@ degradation models and one or more error models

Plot the distribution of log likelihoods from multistart objects

-

parhist()

+

parplot()

-

Plot parameter distributions from multistart objects

+

Plot parameter variability of multistart objects

Datasets and known results

diff --git a/docs/dev/reference/logLik.saem.mmkin.html b/docs/dev/reference/logLik.saem.mmkin.html index 9694232c..99b3b906 100644 --- a/docs/dev/reference/logLik.saem.mmkin.html +++ b/docs/dev/reference/logLik.saem.mmkin.html @@ -91,7 +91,7 @@
# S3 method for saem.mmkin
-logLik(object, ..., method = c("lin", "is", "gq"))
+logLik(object, ..., method = c("is", "lin", "gq"))
diff --git a/docs/dev/reference/multistart-1.png b/docs/dev/reference/multistart-1.png index 25362568..7fc24a04 100644 Binary files a/docs/dev/reference/multistart-1.png and b/docs/dev/reference/multistart-1.png differ diff --git a/docs/dev/reference/multistart-2.png b/docs/dev/reference/multistart-2.png index cf8c097e..7553a51a 100644 Binary files a/docs/dev/reference/multistart-2.png and b/docs/dev/reference/multistart-2.png differ diff --git a/docs/dev/reference/multistart.html b/docs/dev/reference/multistart.html index c874bf50..176d40c0 100644 --- a/docs/dev/reference/multistart.html +++ b/docs/dev/reference/multistart.html @@ -175,7 +175,7 @@ doi: 10.1186/s12859-021-04373-4.

See also

- +
@@ -195,7 +195,7 @@ 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) -parhist(f_saem_full_multi, lpos = "bottomleft") +parplot(f_saem_full_multi, lpos = "topleft") illparms(f_saem_full) #> [1] "sd(log_k2)" @@ -208,11 +208,10 @@ doi: 10.1186/s12859-021-04373-4.

# nodes, as it is referred to when updating the saem object on the nodes. library(parallel) cl <- makePSOCKcluster(12) -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) -parhist(f_saem_reduced_multi, lpos = "topright") +parplot(f_saem_reduced_multi, lpos = "topright") +stopCluster(cl) # }
diff --git a/docs/dev/reference/parplot.html b/docs/dev/reference/parplot.html new file mode 100644 index 00000000..38a93e27 --- /dev/null +++ b/docs/dev/reference/parplot.html @@ -0,0 +1,172 @@ + +Plot parameter variability of multistart objects — parplot • mkin + + +
+
+ + + +
+
+ + +
+

Produces a boxplot with all parameters from the multiple runs, scaled +either by the parameters of the run with the highest likelihood, +or by their medians as proposed in the paper by Duchesne et al. (2021).

+
+ +
+
parplot(object, ...)
+
+# S3 method for multistart.saem.mmkin
+parplot(
+  object,
+  llmin = -Inf,
+  scale = c("best", "median"),
+  lpos = "bottomleft",
+  main = "",
+  ...
+)
+
+ +
+

Arguments

+
object
+

The multistart object

+ + +
...
+

Passed to boxplot

+ + +
llmin
+

The minimum likelihood of objects to be shown

+ + +
scale
+

By default, scale parameters using the best available fit. +If 'median', parameters are scaled using the median parameters from all fits.

+ + +
lpos
+

Positioning of the legend.

+ + +
main
+

Title of the plot

+ +
+
+

References

+

Duchesne R, Guillemin A, Gandrillon O, Crauste F. Practical +identifiability in the frame of nonlinear mixed effects models: the example +of the in vitro erythropoiesis. BMC Bioinformatics. 2021 Oct 4;22(1):478. +doi: 10.1186/s12859-021-04373-4.

+
+
+

See also

+ +
+ +
+ +
+ + +
+ +
+

Site built with pkgdown 2.0.6.

+
+ +
+ + + + + + + + diff --git a/docs/dev/reference/status.html b/docs/dev/reference/status.html new file mode 100644 index 00000000..778446b3 --- /dev/null +++ b/docs/dev/reference/status.html @@ -0,0 +1,171 @@ + +Method to get status information for fit array objects — status • mkin + + +
+
+ + + +
+
+ + +
+

Method to get status information for fit array objects

+
+ +
+
status(object, ...)
+
+# S3 method for mmkin
+status(object, ...)
+
+# S3 method for status.mmkin
+print(x, ...)
+
+# S3 method for mhmkin
+status(object, ...)
+
+# S3 method for status.mhmkin
+print(x, ...)
+
+ +
+

Arguments

+
object
+

The object to investigate

+ + +
...
+

For potential future extensions

+ + +
x
+

The object to be printed

+ +
+
+

Value

+ + +

An object with the same dimensions as the fit array +suitable printing method.

+
+ +
+

Examples

+
# \dontrun{
+fits <- mmkin(
+  c("SFO", "FOMC"),
+  list("FOCUS A" = FOCUS_2006_A,
+       "FOCUS B" = FOCUS_2006_C),
+  quiet = TRUE)
+status(fits)
+#>       dataset
+#> model  FOCUS A FOCUS B
+#>   SFO  OK      OK     
+#>   FOMC OK      OK     
+#> 
+#> OK: No warnings
+# }
+
+
+
+ +
+ + +
+ +
+

Site built with pkgdown 2.0.6.

+
+ +
+ + + + + + + + diff --git a/docs/dev/reference/summary.mmkin.html b/docs/dev/reference/summary.mmkin.html index e440e4a9..145e3ba1 100644 --- a/docs/dev/reference/summary.mmkin.html +++ b/docs/dev/reference/summary.mmkin.html @@ -1,5 +1,5 @@ -Summary method for class "mmkin" — summary.mmkin • mkinSummary method for class "mmkin" — summary.mmkin • mkin