From adac45acb72f9ae9786ab4470b40fcdfda8e70f2 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Mon, 28 Apr 2014 18:38:43 +0200 Subject: Fix a bug recently introduced to the Hockey stick model --- R/transform_odeparms.R | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'R') 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]) -- cgit v1.2.1