diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2014-04-28 18:38:43 +0200 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2014-04-28 18:38:43 +0200 |
commit | adac45acb72f9ae9786ab4470b40fcdfda8e70f2 (patch) | |
tree | 563a923aabc07b23ddc75ba0b0fadc94a1bb4dac /R/transform_odeparms.R | |
parent | a291c0f7033f0f7a7934573411237755fc1c5311 (diff) |
Fix a bug recently introduced to the Hockey stick model
Diffstat (limited to 'R/transform_odeparms.R')
-rw-r--r-- | R/transform_odeparms.R | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/R/transform_odeparms.R b/R/transform_odeparms.R index 24de0748..a0c302f5 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])
|