aboutsummaryrefslogtreecommitdiff
path: root/R/plot.mixed.mmkin.R
diff options
context:
space:
mode:
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