aboutsummaryrefslogtreecommitdiff
path: root/R/mhmkin.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2022-10-31 16:19:37 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2022-10-31 16:19:37 +0100
commite444e3eb3e21c66c34ce48775467cd9fa53f2a92 (patch)
tree70ff613110d234b054e8d2fa9925ab7b2c238a1b /R/mhmkin.R
parentc8559daaecc48626f27dd1d80d25bde346cb9776 (diff)
Possibility to override the error model in update.saem
Diffstat (limited to 'R/mhmkin.R')
-rw-r--r--R/mhmkin.R6
1 files changed, 4 insertions, 2 deletions
diff --git a/R/mhmkin.R b/R/mhmkin.R
index 5cc95253..2fb4d9bc 100644
--- a/R/mhmkin.R
+++ b/R/mhmkin.R
@@ -108,7 +108,9 @@ mhmkin.list <- function(objects, backend = "saemix",
attributes(results) <- attributes(fit_indices)
attr(results, "call") <- call
attr(results, "time") <- fit_time
- class(results) <- "mhmkin"
+ class(results) <- switch(backend,
+ saemix = c("mhmkin.saem.mmkin", "mhmkin")
+ )
return(results)
}
@@ -201,7 +203,7 @@ update.mhmkin <- function(object, ..., evaluate = TRUE) {
anova.mhmkin <- function(object, ...,
method = c("is", "lin", "gq"), test = FALSE, model.names = "auto") {
if (identical(model.names, "auto")) {
- model.names <- paste(rownames(object), "-", colnames(object))
+ model.names <- outer(rownames(object), colnames(object), paste)
}
rlang::inject(anova(!!!(object), method = method, test = test, model.names = model.names))
}

Contact - Imprint