aboutsummaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2022-11-04 18:09:50 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2022-11-04 18:09:50 +0100
commit85cb80385bb26f40d1c1a40bbda457dd29c4cc23 (patch)
tree5a11c81b5ebd63b42fba715c72902a3147c5cdd8 /man
parentce7a20e54d8005264f13d3e9fe0c99f84d20b85e (diff)
Make it easy to override maxsteps for lsoda
The hope was to be more successful in saemix fits, but I did not notice an improvement (e.g. for a failing likelihood calculation with importance sampling, where the error message suggested to increase maxsteps).
Diffstat (limited to 'man')
-rw-r--r--man/mkinpredict.Rd33
1 files changed, 18 insertions, 15 deletions
diff --git a/man/mkinpredict.Rd b/man/mkinpredict.Rd
index 3a2939e1..0797f259 100644
--- a/man/mkinpredict.Rd
+++ b/man/mkinpredict.Rd
@@ -18,6 +18,7 @@ mkinpredict(x, odeparms, odeini, outtimes, ...)
method.ode = "lsoda",
atol = 1e-08,
rtol = 1e-10,
+ maxsteps = 20000,
map_output = TRUE,
na_stop = TRUE,
...
@@ -38,13 +39,13 @@ mkinpredict(x, odeparms, odeini, outtimes, ...)
)
}
\arguments{
-\item{x}{A kinetic model as produced by \code{\link{mkinmod}}, or a kinetic
-fit as fitted by \code{\link{mkinfit}}. In the latter case, the fitted
-parameters are used for the prediction.}
+\item{x}{A kinetic model as produced by \link{mkinmod}, or a kinetic fit as
+fitted by \link{mkinfit}. In the latter case, the fitted parameters are used for
+the prediction.}
\item{odeparms}{A numeric vector specifying the parameters used in the
-kinetic model, which is generally defined as a set of ordinary
-differential equations.}
+kinetic model, which is generally defined as a set of ordinary differential
+equations.}
\item{odeini}{A numeric vector containing the initial values of the state
variables of the model. Note that the state variables can differ from the
@@ -63,31 +64,33 @@ variables. The third possibility "eigen" is faster but not applicable to
some models e.g. using FOMC for the parent compound.}
\item{use_compiled}{If set to \code{FALSE}, no compiled version of the
-\code{\link{mkinmod}} model is used, even if is present.}
+\link{mkinmod} model is used, even if is present.}
-\item{method.ode}{The solution method passed via \code{\link{mkinpredict}}
-to \code{\link{ode}} in case the solution type is "deSolve". The default
-"lsoda" is performant, but sometimes fails to converge.}
+\item{method.ode}{The solution method passed via \link{mkinpredict} to \link{ode}] in
+case the solution type is "deSolve". The default "lsoda" is performant, but
+sometimes fails to converge.}
-\item{atol}{Absolute error tolerance, passed to \code{\link{ode}}. Default
-is 1e-8, lower than in \code{\link{lsoda}}.}
+\item{atol}{Absolute error tolerance, passed to \link{ode}. Default is 1e-8,
+lower than in \link{lsoda}.}
-\item{rtol}{Absolute error tolerance, passed to \code{\link{ode}}. Default
-is 1e-10, much lower than in \code{\link{lsoda}}.}
+\item{rtol}{Absolute error tolerance, passed to \link{ode}. Default is 1e-10,
+much lower than in \link{lsoda}.}
+
+\item{maxsteps}{Maximum number of steps, passed to \link{ode}.}
\item{map_output}{Boolean to specify if the output should list values for
the observed variables (default) or for all state variables (if set to
FALSE). Setting this to FALSE has no effect for analytical solutions,
as these always return mapped output.}
-\item{na_stop}{Should it be an error if deSolve::ode returns NaN values}
+\item{na_stop}{Should it be an error if \link{ode} returns NaN values}
}
\value{
A matrix with the numeric solution in wide format
}
\description{
This function produces a time series for all the observed variables in a
-kinetic model as specified by \code{\link{mkinmod}}, using a specific set of
+kinetic model as specified by \link{mkinmod}, using a specific set of
kinetic parameters and initial values for the state variables.
}
\examples{

Contact - Imprint