aboutsummaryrefslogtreecommitdiff
path: root/R/saem.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2022-09-16 10:12:54 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2022-09-16 10:12:54 +0200
commit03e1598a3c79911a497758fe382461f288bf05e6 (patch)
tree9b6476bc8e6d2fc9d3a70ad73f20a4ea5d75735b /R/saem.R
parentaf24cde56a49b532d7f65dd199d176e0ce3cac09 (diff)
Diagnostic plots for multistart method
Diffstat (limited to 'R/saem.R')
-rw-r--r--R/saem.R8
1 files changed, 4 insertions, 4 deletions
diff --git a/R/saem.R b/R/saem.R
index 875456c3..0d0d9b8a 100644
--- a/R/saem.R
+++ b/R/saem.R
@@ -568,7 +568,7 @@ saemix_data <- function(object, verbose = FALSE, ...) {
ds_list <- lapply(object, function(x) x$data[c("time", "variable", "observed")])
names(ds_list) <- ds_names
- ds_saemix_all <- purrr::map_dfr(ds_list, function(x) x, .id = "ds")
+ ds_saemix_all <- vctrs::vec_rbind(!!!ds_list, .names_to = "ds")
ds_saemix <- data.frame(ds = ds_saemix_all$ds,
name = as.character(ds_saemix_all$variable),
time = ds_saemix_all$time,
@@ -617,9 +617,9 @@ update.saem.mmkin <- function(object, ..., evaluate = TRUE) {
#' @rdname saem
#' @param ci Should a matrix with estimates and confidence interval boundaries
#' be returned? If FALSE (default), a vector of estimates is returned.
-parms.saem.mmkin <- function(x, ci = FALSE, ...) {
- conf.int <- x$so@results@conf.int[c("estimate", "lower", "upper")]
- rownames(conf.int) <- x$so@results@conf.int[["name"]]
+parms.saem.mmkin <- function(object, ci = FALSE, ...) {
+ conf.int <- object$so@results@conf.int[c("estimate", "lower", "upper")]
+ rownames(conf.int) <- object$so@results@conf.int[["name"]]
conf.int.var <- grepl("^Var\\.", rownames(conf.int))
conf.int <- conf.int[!conf.int.var, ]
estimate <- conf.int[, "estimate"]

Contact - Imprint