diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2022-02-09 12:19:14 +0100 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2022-02-09 12:19:14 +0100 |
commit | d8f31d1323998f33d07535f55c81be380d93ca45 (patch) | |
tree | ef0e614878397974bb4040e146fb116bb4ee40c5 /R/saem.R | |
parent | 0fa8a770812775d697717ad723f7f61fb04b7fef (diff) |
Adapt saemix interface to saemix 3.0 on CRAN
Diffstat (limited to 'R/saem.R')
-rw-r--r-- | R/saem.R | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -158,9 +158,14 @@ saem.mmkin <- function(object, } return_data <- nlme_data(object) + saemix_data_ds <- f_saemix@data@data$ds + mkin_ds_order <- as.character(unique(return_data$ds)) + saemix_ds_order <- unique(saemix_data_ds) + psi <- saemix::psi(f_saemix) + rownames(psi) <- saemix_ds_order return_data$predicted <- f_saemix@model@model( - psi = saemix::psi(f_saemix), + psi = psi[mkin_ds_order, ], id = as.numeric(return_data$ds), xidep = return_data[c("time", "name")]) @@ -184,6 +189,8 @@ saem.mmkin <- function(object, bparms.optim = bparms_optim, bparms.fixed = object[[1]]$bparms.fixed, data = return_data, + mkin_ds_order = mkin_ds_order, + saemix_ds_order = saemix_ds_order, err_mod = object[[1]]$err_mod, date.fit = date(), saemixversion = as.character(utils::packageVersion("saemix")), |