diff options
author | Johannes Ranke <johannes.ranke@jrwb.de> | 2025-02-14 07:19:15 +0100 |
---|---|---|
committer | Johannes Ranke <johannes.ranke@jrwb.de> | 2025-02-14 07:19:15 +0100 |
commit | b0f08271d1dae8ffaf57f557c27eba1314ece1d5 (patch) | |
tree | 98da899d455d6945849d6f4b4e98adfb98dc8b2b /R/illparms.R | |
parent | 7dc59c522d0639f6473463340e518e2e8074e364 (diff) | |
parent | 55d9c2331e468efd364472555dbfae84603a4f73 (diff) |
Merge branch 'main' into dev
Diffstat (limited to 'R/illparms.R')
-rw-r--r-- | R/illparms.R | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/R/illparms.R b/R/illparms.R index 68a6bff6..b4b37fbb 100644 --- a/R/illparms.R +++ b/R/illparms.R @@ -102,12 +102,14 @@ illparms.saem.mmkin <- function(object, conf.level = 0.95, random = TRUE, errmod ints <- intervals(object, conf.level = conf.level) ill_parms <- character(0) if (random) { - ill_parms_random <- ints$random[, "lower"] < 0 - ill_parms <- c(ill_parms, names(which(ill_parms_random))) + ill_parms_random_i <- which(ints$random[, "lower"] < 0) + ill_parms_random <- rownames(ints$random)[ill_parms_random_i] + ill_parms <- c(ill_parms, ill_parms_random) } if (errmod) { - ill_parms_errmod <- ints$errmod[, "lower"] < 0 & ints$errmod[, "upper"] > 0 - ill_parms <- c(ill_parms, names(which(ill_parms_errmod))) + ill_parms_errmod_i <- which(ints$errmod[, "lower"] < 0 & ints$errmod[, "upper"] > 0) + ill_parms_errmod <- rownames(ints$errmod)[ill_parms_errmod_i] + ill_parms <- c(ill_parms, ill_parms_errmod) } if (slopes) { if (is.null(object$so)) stop("Slope testing is only implemented for the saemix backend") |