aboutsummaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2021-07-23 18:13:14 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2021-07-23 18:13:14 +0200
commit36b67cc7505a0a7f0960d4cb820c527f27e18f9c (patch)
tree389897451f80e8684b2ba6d9bb3da53bd4d5cbff /man
parent40b78bed232798ecbeb72759cdf8d400ea35b31f (diff)
parent25648577b6d5a4521da7c9d2eb174d292d2d85af (diff)
Merge branch 'master' into nlmixr
After the merge, run make test and accept the new snapshot for the mixed model fit for an nlme object
Diffstat (limited to 'man')
-rw-r--r--man/dimethenamid_2018.Rd33
-rw-r--r--man/mkinmod.Rd3
-rw-r--r--man/nlme.mmkin.Rd7
-rw-r--r--man/saem.Rd2
4 files changed, 28 insertions, 17 deletions
diff --git a/man/dimethenamid_2018.Rd b/man/dimethenamid_2018.Rd
index 93fcad26..a0e5bbea 100644
--- a/man/dimethenamid_2018.Rd
+++ b/man/dimethenamid_2018.Rd
@@ -11,7 +11,7 @@ An \link{mkindsg} object grouping eight datasets with some meta information
Rapporteur Member State Germany, Co-Rapporteur Member State Bulgaria (2018)
Renewal Assessment Report Dimethenamid-P Volume 3 - B.8 Environmental fate and behaviour
Rev. 2 - November 2017
-\url{http://registerofquestions.efsa.europa.eu/roqFrontend/outputLoader?output=ON-5211}
+\url{https://open.efsa.europa.eu/study-inventory/EFSA-Q-2014-00716}
}
\usage{
dimethenamid_2018
@@ -56,16 +56,31 @@ f_dmta_mkin_tc <- mmkin(
list("DFOP-SFO3+" = dfop_sfo3_plus),
dmta_ds, quiet = TRUE, error_model = "tc")
nlmixr_model(f_dmta_mkin_tc)
-f_dmta_nlmixr_focei <- nlmixr(f_dmta_mkin_tc, est = "focei",
- control = nlmixr::foceiControl(print = 500))
+# The focei fit takes about four minutes on my system
+system.time(
+ f_dmta_nlmixr_focei <- nlmixr(f_dmta_mkin_tc, est = "focei",
+ control = nlmixr::foceiControl(print = 500))
+)
summary(f_dmta_nlmixr_focei)
plot(f_dmta_nlmixr_focei)
-# saem has a problem with this model/data combination, maybe because of the
-# overparameterised error model, to be investigated
-#f_dmta_nlmixr_saem <- nlmixr(f_dmta_mkin_tc, est = "saem",
-# control = saemControl(print = 500))
-#summary(f_dmta_nlmixr_saem)
-#plot(f_dmta_nlmixr_saem)
+# Using saemix takes about 18 minutes
+system.time(
+ f_dmta_saemix <- saem(f_dmta_mkin_tc, test_log_parms = TRUE)
+)
+
+# nlmixr with est = "saem" is pretty fast with default iteration numbers, most
+# of the time (about 2.5 minutes) is spent for calculating the log likelihood at the end
+# The likelihood calculated for the nlmixr fit is much lower than that found by saemix
+# Also, the trace plot and the plot of the individual predictions is not
+# convincing for the parent. It seems we are fitting an overparameterised
+# model, so the result we get strongly depends on starting parameters and control settings.
+system.time(
+ f_dmta_nlmixr_saem <- nlmixr(f_dmta_mkin_tc, est = "saem",
+ control = nlmixr::saemControl(print = 500, logLik = TRUE, nmc = 9))
+)
+traceplot(f_dmta_nlmixr_saem$nm)
+summary(f_dmta_nlmixr_saem)
+plot(f_dmta_nlmixr_saem)
}
}
\keyword{datasets}
diff --git a/man/mkinmod.Rd b/man/mkinmod.Rd
index bf073634..87ce9016 100644
--- a/man/mkinmod.Rd
+++ b/man/mkinmod.Rd
@@ -118,9 +118,6 @@ variable, specifying the corresponding submodel as well as outgoing pathways
Print mkinmod objects in a way that the user finds his way to get to its
components.
-
-This is a convenience function to set up the lists used as arguments for
-\code{\link{mkinmod}}.
}
\details{
For the definition of model types and their parameters, the equations given
diff --git a/man/nlme.mmkin.Rd b/man/nlme.mmkin.Rd
index a2b45efa..ed58d603 100644
--- a/man/nlme.mmkin.Rd
+++ b/man/nlme.mmkin.Rd
@@ -36,10 +36,9 @@
\item{fixed}{Ignored, all degradation parameters fitted in the
mmkin model are used as fixed parameters}
-\item{random}{If not specified, correlated random effects are set up
-for all optimised degradation model parameters using the log-Cholesky
-parameterization \link[nlme:pdLogChol]{nlme::pdLogChol} that is also the default of
-the generic \link{nlme} method.}
+\item{random}{If not specified, no correlations between random effects are
+set up for the optimised degradation model parameters. This is
+achieved by using the \link[nlme:pdDiag]{nlme::pdDiag} method.}
\item{groups}{See the documentation of nlme}
diff --git a/man/saem.Rd b/man/saem.Rd
index f462f405..00e9aeda 100644
--- a/man/saem.Rd
+++ b/man/saem.Rd
@@ -14,7 +14,7 @@ saem(object, ...)
object,
transformations = c("mkin", "saemix"),
degparms_start = numeric(),
- test_log_parms = FALSE,
+ test_log_parms = TRUE,
conf.level = 0.6,
solution_type = "auto",
nbiter.saemix = c(300, 100),

Contact - Imprint