aboutsummaryrefslogtreecommitdiff
path: root/R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2014-04-28 18:38:43 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2014-04-28 18:38:43 +0200
commitadac45acb72f9ae9786ab4470b40fcdfda8e70f2 (patch)
tree563a923aabc07b23ddc75ba0b0fadc94a1bb4dac /R
parenta291c0f7033f0f7a7934573411237755fc1c5311 (diff)
Fix a bug recently introduced to the Hockey stick model
Diffstat (limited to 'R')
-rw-r--r--R/transform_odeparms.R6
1 files changed, 3 insertions, 3 deletions
diff --git a/R/transform_odeparms.R b/R/transform_odeparms.R
index 24de074..a0c302f 100644
--- a/R/transform_odeparms.R
+++ b/R/transform_odeparms.R
@@ -44,8 +44,8 @@ transform_odeparms <- function(parms, mod_vars,
}
}
- # Transform rate and fraction parameters also for FOMC, DFOP and HS models if requested
- for (pname in c("alpha", "beta", "k1", "k2")) {
+ # Transform rates, fractions and tb also for FOMC, DFOP and HS models if requested
+ for (pname in c("alpha", "beta", "k1", "k2", "tb")) {
if (!is.na(parms[pname])) {
transparms[pname] <- ifelse(transform_rates, log(parms[pname]), parms[pname])
transparms[pname] <- ifelse(transform_rates, log(parms[pname]), parms[pname])
@@ -86,7 +86,7 @@ backtransform_odeparms <- function(transparms, mod_vars,
}
}
- # Transform parameters also for DFOP and HS models
+ # Transform parameters also for FOMC, DFOP and HS models
for (pname in c("alpha", "beta", "k1", "k2", "tb")) {
if (!is.na(transparms[pname])) {
parms[pname] <- ifelse(transform_rates, exp(transparms[pname]), transparms[pname])

Contact - Imprint