aboutsummaryrefslogtreecommitdiff
path: root/R/endpoints.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2015-06-20 01:06:24 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2015-06-20 03:59:56 +0200
commit062b9cc1d084e8bb5e552076fc48ade4b3050644 (patch)
treebfb8acaf64fbbefbd7423cf6d0cfdb5119120a26 /R/endpoints.R
parent6281424beafe531c9891670c3227ab12e9a21990 (diff)
Low-level generation of compiled models
As it is unclear if and when ccSolve will be published on CRAN, the generation, compilation and use of the C version of the system of differential equations was developed for mkin, inspired and guided by the code from the ccSolve package. Many thanks again to Karline Soetaert for all of her work on this and other R packages. Now all model types, including the Hockey-Stick model for the parent compund and the IORE model for parent and/or metabolites can be compiled.
Diffstat (limited to 'R/endpoints.R')
-rw-r--r--R/endpoints.R2
1 files changed, 1 insertions, 1 deletions
diff --git a/R/endpoints.R b/R/endpoints.R
index ae9aa3ec..001595bc 100644
--- a/R/endpoints.R
+++ b/R/endpoints.R
@@ -50,7 +50,7 @@ endpoints <- function(fit) {
ep$distimes[obs_var, c("DT50back")] = DT50_back
}
if (type == "IORE") {
- k_names = grep(paste("k.iore", obs_var, sep="_"), names(parms.all), value=TRUE)
+ k_names = grep(paste("k__iore", obs_var, sep="_"), names(parms.all), value=TRUE)
k_tot = sum(parms.all[k_names])
# From the NAFTA kinetics guidance, p. 5
n = parms.all[paste("N", obs_var, sep = "_")]

Contact - Imprint