diff options
Diffstat (limited to '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])
|