aboutsummaryrefslogtreecommitdiff
path: root/R/mkinfit.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2019-02-22 09:46:39 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2019-02-22 09:46:39 +0100
commit39d5dc6988389f026d5165cac208ec63d0645a77 (patch)
tree9ad604208a70d9ff01fd3e77febbe3a7080dee06 /R/mkinfit.R
parent5181a55b1619c153b690db97ee82698bf76525ff (diff)
Further adaptations for the logistic model
- Make mmkin compatible - Return DT50 values corresponding to k0 and kmax - Turn incompatible parameter names in parms.ini from an error to a warning, in order to make it possible to use this argument in calls to mmkin
Diffstat (limited to 'R/mkinfit.R')
-rw-r--r--R/mkinfit.R4
1 files changed, 2 insertions, 2 deletions
diff --git a/R/mkinfit.R b/R/mkinfit.R
index 40413125..2dec3a72 100644
--- a/R/mkinfit.R
+++ b/R/mkinfit.R
@@ -99,10 +99,10 @@ mkinfit <- function(mkinmod, observed,
# Define starting values for parameters where not specified by the user
if (parms.ini[[1]] == "auto") parms.ini = vector()
- # Prevent inital parameter specifications that are not in the model
+ # Warn for inital parameter specifications that are not in the model
wrongpar.names <- setdiff(names(parms.ini), mkinmod$parms)
if (length(wrongpar.names) > 0) {
- stop("Initial parameter(s) ", paste(wrongpar.names, collapse = ", "),
+ warning("Initial parameter(s) ", paste(wrongpar.names, collapse = ", "),
" not used in the model")
}

Contact - Imprint