diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2022-11-04 07:48:04 +0100 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2022-11-04 07:48:04 +0100 |
commit | 0389d523f049945c85eba42d4a006523595043f0 (patch) | |
tree | cd69527d328f8199700113c7f069302dc2586cbd /R | |
parent | 48471ca62aeb1aded8aee7fd608607343c90955b (diff) |
Never fail with errors in saem.mmkin
I think it is always preferable to be able to investigate the
saemix object returned.
Diffstat (limited to 'R')
-rw-r--r-- | R/saem.R | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -45,8 +45,6 @@ utils::globalVariables(c("predicted", "std")) #' @param covariate_models A list containing linear model formulas with one explanatory #' variable, i.e. of the type 'parameter ~ covariate'. Covariates must be available #' in the 'covariates' data frame. -#' @param fail_with_errors Should a failure to compute standard errors -#' from the inverse of the Fisher Information Matrix be a failure? #' @param quiet Should we suppress the messages saemix prints at the beginning #' and the end of the optimisation process? #' @param nbiter.saemix Convenience option to increase the number of @@ -145,7 +143,6 @@ saem.mmkin <- function(object, control = list(displayProgress = FALSE, print = FALSE, nbiter.saemix = nbiter.saemix, save = FALSE, save.graphs = FALSE), - fail_with_errors = TRUE, verbose = FALSE, quiet = FALSE, ...) { call <- match.call() @@ -177,9 +174,6 @@ saem.mmkin <- function(object, if (any(is.na(c(f_saemix@results@se.omega, f_saemix@results@se.respar)))) { FIM_failed <- c(FIM_failed, "random effects and error model parameters") } - if (!is.null(FIM_failed) & fail_with_errors) { - stop("Could not invert FIM for ", paste(FIM_failed, collapse = " and ")) - } transparms_optim <- f_saemix@results@fixed.effects names(transparms_optim) <- f_saemix@results@name.fixed |