diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2022-10-31 16:19:37 +0100 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2022-10-31 16:19:37 +0100 |
commit | e444e3eb3e21c66c34ce48775467cd9fa53f2a92 (patch) | |
tree | 70ff613110d234b054e8d2fa9925ab7b2c238a1b /R/mhmkin.R | |
parent | c8559daaecc48626f27dd1d80d25bde346cb9776 (diff) |
Possibility to override the error model in update.saem
Diffstat (limited to 'R/mhmkin.R')
-rw-r--r-- | R/mhmkin.R | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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)) } |