aboutsummaryrefslogtreecommitdiff
path: root/R/mkinpredict.R
diff options
context:
space:
mode:
authorjranke <jranke@edb9625f-4e0d-4859-8d74-9fd3b1da38cb>2012-04-23 23:08:19 +0000
committerjranke <jranke@edb9625f-4e0d-4859-8d74-9fd3b1da38cb>2012-04-23 23:08:19 +0000
commitea197b16fe5c582dd2a72e81d25c1ebbd5d527b3 (patch)
tree4bf946247020b9b29d8b06d3487af575d5bf4060 /R/mkinpredict.R
parente3162e617bc268d9de92640311e2fbe650aa636a (diff)
- Fixed a couple of things
- Now the eigenvalue based solutions are nicely consistent with the deSolve solutions, if enough output times are specified (100, sometimes more are needed, see test.R) - Workaround for invilr not to produce NaN values so often - Still a lot to do (see TODO) git-svn-id: svn+ssh://svn.r-forge.r-project.org/svnroot/kinfit/pkg/mkin@30 edb9625f-4e0d-4859-8d74-9fd3b1da38cb
Diffstat (limited to 'R/mkinpredict.R')
-rw-r--r--R/mkinpredict.R4
1 files changed, 3 insertions, 1 deletions
diff --git a/R/mkinpredict.R b/R/mkinpredict.R
index 49166f30..2b7e51d5 100644
--- a/R/mkinpredict.R
+++ b/R/mkinpredict.R
@@ -17,7 +17,9 @@ mkinpredict <- function(mkinmod, odeparms, odeini, outtimes, solution_type = "de
o <- switch(parent.type,
SFO = SFO.solution(outtimes,
evalparse(parent.name),
- evalparse(paste("k", parent.name, sep="_"))),
+ ifelse(mkinmod$use_of_ff == "min",
+ evalparse(paste("k", parent.name, "sink", sep="_")),
+ evalparse(paste("k", parent.name, sep="_")))),
FOMC = FOMC.solution(outtimes,
evalparse(parent.name),
evalparse("alpha"), evalparse("beta")),

Contact - Imprint