diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2020-07-15 11:49:34 +0200 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2020-07-15 11:49:34 +0200 |
commit | 46763edbd1c9b14cff15c53d96312a7930225704 (patch) | |
tree | 59694acce60b38c0e0fa1a1554b18174966a65b9 | |
parent | 1403e61d1242a4bc97120f7e12b8f0e59f950d15 (diff) |
Use try() within mmkin
This keeps mmkin from stopping if one of the fits fails. Instead,
a try-error is assigned to the respective position in the mmkin object.
-rw-r--r-- | R/mmkin.R | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -95,7 +95,7 @@ mmkin <- function(models = c("SFO", "FOMC", "DFOP"), datasets, w <- which(fit_indices == fit_index, arr.ind = TRUE) model_index <- w[1] dataset_index <- w[2] - mkinfit(models[[model_index]], datasets[[dataset_index]], ...) + res <- try(mkinfit(models[[model_index]], datasets[[dataset_index]], ...)) } if (is.null(cluster)) { |