aboutsummaryrefslogtreecommitdiff
path: root/R/mmkin.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2020-05-26 18:38:51 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2020-05-26 18:52:01 +0200
commit675a733fa2acc08daabb9b8b571c7d658f281f73 (patch)
treeef29cec38aa6d446f7956c0e423cca6bed2e21c0 /R/mmkin.R
parent5e85d8856e7c9db3c52bb6ac5a0a81e2f0c6181c (diff)
Use all cores per default, confint tolerance
Also, use more intelligent starting values for the variance of the random effects for saemix. While this does not appear to speed up the convergence, it shows where this variance is greatly reduced by using mixed-effects models as opposed to the separate independent fits.
Diffstat (limited to 'R/mmkin.R')
-rw-r--r--R/mmkin.R5
1 files changed, 3 insertions, 2 deletions
diff --git a/R/mmkin.R b/R/mmkin.R
index dbb61b78..37c4e87d 100644
--- a/R/mmkin.R
+++ b/R/mmkin.R
@@ -12,7 +12,8 @@
#' @param cores The number of cores to be used for multicore processing. This
#' is only used when the \code{cluster} argument is \code{NULL}. On Windows
#' machines, cores > 1 is not supported, you need to use the \code{cluster}
-#' argument to use multiple logical processors.
+#' argument to use multiple logical processors. Per default, all cores
+#' detected by [parallel::detectCores()] are used.
#' @param cluster A cluster as returned by \code{\link{makeCluster}} to be used
#' for parallel execution.
#' @param \dots Further arguments that will be passed to \code{\link{mkinfit}}.
@@ -62,7 +63,7 @@
#'
#' @export mmkin
mmkin <- function(models = c("SFO", "FOMC", "DFOP"), datasets,
- cores = round(detectCores()/2), cluster = NULL, ...)
+ cores = detectCores(), cluster = NULL, ...)
{
parent_models_available = c("SFO", "FOMC", "DFOP", "HS", "SFORB", "IORE", "logistic")
n.m <- length(models)

Contact - Imprint