aboutsummaryrefslogtreecommitdiff
path: root/R/plot.mixed.mmkin.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2022-02-09 12:19:14 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2022-02-09 12:19:14 +0100
commitd8f31d1323998f33d07535f55c81be380d93ca45 (patch)
treeef0e614878397974bb4040e146fb116bb4ee40c5 /R/plot.mixed.mmkin.R
parent0fa8a770812775d697717ad723f7f61fb04b7fef (diff)
Adapt saemix interface to saemix 3.0 on CRAN
Diffstat (limited to 'R/plot.mixed.mmkin.R')
-rw-r--r--R/plot.mixed.mmkin.R5
1 files changed, 3 insertions, 2 deletions
diff --git a/R/plot.mixed.mmkin.R b/R/plot.mixed.mmkin.R
index 1ac62b07..2903a05c 100644
--- a/R/plot.mixed.mmkin.R
+++ b/R/plot.mixed.mmkin.R
@@ -104,8 +104,9 @@ plot.mixed.mmkin <- function(x,
if (inherits(x, "saem.mmkin")) {
if (x$transformations == "saemix") backtransform = FALSE
- degparms_i <- saemix::psi(x$so)
- rownames(degparms_i) <- ds_names
+ psi <- saemix::psi(x$so)
+ rownames(psi) <- x$saemix_ds_order
+ degparms_i <- psi[ds_names, ]
degparms_i_names <- setdiff(x$so@results@name.fixed, names(fit_1$errparms))
colnames(degparms_i) <- degparms_i_names
residual_type = ifelse(standardized, "standardized", "residual")

Contact - Imprint