aboutsummaryrefslogtreecommitdiff
path: root/R/transform_odeparms.R
diff options
context:
space:
mode:
Diffstat (limited to 'R/transform_odeparms.R')
-rw-r--r--R/transform_odeparms.R5
1 files changed, 3 insertions, 2 deletions
diff --git a/R/transform_odeparms.R b/R/transform_odeparms.R
index 778f56cd..aa70a0b3 100644
--- a/R/transform_odeparms.R
+++ b/R/transform_odeparms.R
@@ -38,8 +38,7 @@ transform_odeparms <- function(parms, mkinmod,
if (length(k) > 0) {
if(transform_rates) {
transparms[paste0("log_", names(k))] <- log(k)
- }
- else transparms[names(k)] <- k
+ } else transparms[names(k)] <- k
}
# Do not transform exponents in IORE models
@@ -123,6 +122,8 @@ backtransform_odeparms <- function(transparms, mkinmod,
} else {
trans_k <- transparms[grep("^k_", names(transparms))]
parms[names(trans_k)] <- trans_k
+ trans_k.iore <- transparms[grep("^k.iore_", names(transparms))]
+ parms[names(trans_k.iore)] <- trans_k.iore
}
# Do not transform exponents in IORE models

Contact - Imprint