aboutsummaryrefslogtreecommitdiff
path: root/R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2023-04-15 20:00:00 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2023-04-15 20:00:00 +0200
commitf215080efba4097ccdaa2d1208edd36c26d7978a (patch)
tree1acb432251018d9e51dc4640a186ec7227c70ba3 /R
parent2db19b7657b8f815c65fd4855cacecc91b695c84 (diff)
Increase test coverage
Also, using mkin analytical solutions for more than one observed variable is not supported (but could be if out_values would be reordered).
Diffstat (limited to 'R')
-rw-r--r--R/saem.R4
1 files changed, 4 insertions, 0 deletions
diff --git a/R/saem.R b/R/saem.R
index 83de97b0..a9f97d23 100644
--- a/R/saem.R
+++ b/R/saem.R
@@ -307,6 +307,10 @@ saemix_model <- function(object, solution_type = "auto",
mkin_model <- object[[1]]$mkinmod
+ if (length(mkin_model$spec) > 1 & solution_type[1] == "analytical") {
+ stop("mkin analytical solutions not supported for more thane one observed variable")
+ }
+
degparms_optim <- mean_degparms(object, test_log_parms = test_log_parms)
na_degparms <- names(which(is.na(degparms_optim)))
if (length(na_degparms) > 0) {

Contact - Imprint