Retrieve a degradation function from the mmkin namespace
diff --git a/docs/reference/nlme.mmkin.html b/docs/reference/nlme.mmkin.html
index 9af9cbf7..33cc9164 100644
--- a/docs/reference/nlme.mmkin.html
+++ b/docs/reference/nlme.mmkin.html
@@ -258,7 +258,7 @@ parameters taken from the mmkin object are used
#> parent 11.96183 39.73634
#>
#> Nonlinear mixed-effects model fit by maximum likelihood
-#> Model: value ~ deg_func(name, time, parent_0, log_k_parent_sink)
+#> Model: value ~ (mkin::get_deg_func())(name, time, parent_0, log_k_parent_sink)
#> Data: "Not shown"
#> Log-likelihood: -307.5269
#> Fixed: list(parent_0 ~ 1, log_k_parent_sink ~ 1)
@@ -276,9 +276,10 @@ parameters taken from the mmkin object are used
#> Number of Groups: 5
#> Nonlinear mixed-effects model fit by maximum likelihood
+#> Model: value ~ (mkin::get_deg_func())(name, time, parent_0, log_k_parent_sink)
#> Data: "Not shown"
#> Log-likelihood: -404.3729
#> Fixed: list(parent_0 ~ 1, log_k_parent_sink ~ 1)
@@ -291,8 +292,7 @@ parameters taken from the mmkin object are used
#> StdDev: 0.002416792 21.63027
#>
#> Number of Observations: 90
-#> Number of Groups: 5
# \dontrun{
- # Test on some real data
+#> Number of Groups: 5
# Test on some real datads_2<-lapply(experimental_data_for_UBA_2019[6:10],
function(x) x$data[c("name", "time", "value")])
m_sfo_sfo<-mkinmod(parent=mkinsub("SFO", "A1"),
diff --git a/docs/sitemap.xml b/docs/sitemap.xml
index d1c86707..5abcc894 100644
--- a/docs/sitemap.xml
+++ b/docs/sitemap.xml
@@ -66,6 +66,9 @@
https://pkgdown.jrwb.de/mkin/reference/experimental_data_for_UBA.html
+
+ https://pkgdown.jrwb.de/mkin/reference/get_deg_func.html
+ https://pkgdown.jrwb.de/mkin/reference/ilr.html
diff --git a/man/get_deg_func.Rd b/man/get_deg_func.Rd
new file mode 100644
index 00000000..1d8a3de9
--- /dev/null
+++ b/man/get_deg_func.Rd
@@ -0,0 +1,15 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/nlme.mmkin.R
+\name{get_deg_func}
+\alias{get_deg_func}
+\title{Retrieve a degradation function from the mmkin namespace}
+\usage{
+get_deg_func()
+}
+\value{
+A function that was likely previously assigned from within
+ nlme.mmkin
+}
+\description{
+Retrieve a degradation function from the mmkin namespace
+}
diff --git a/man/nlme.mmkin.Rd b/man/nlme.mmkin.Rd
index 97d444e4..430dbda1 100644
--- a/man/nlme.mmkin.Rd
+++ b/man/nlme.mmkin.Rd
@@ -83,9 +83,9 @@ endpoints(f[[1]])
f_nlme <- nlme(f)
print(f_nlme)
endpoints(f_nlme)
-f_nlme_2 <- nlme(f, start = c(parent_0 = 100, log_k_parent_sink = 0.1))
-update(f_nlme_2, random = parent_0 ~ 1)
\dontrun{
+ f_nlme_2 <- nlme(f, start = c(parent_0 = 100, log_k_parent_sink = 0.1))
+ update(f_nlme_2, random = parent_0 ~ 1)
# Test on some real data
ds_2 <- lapply(experimental_data_for_UBA_2019[6:10],
function(x) x$data[c("name", "time", "value")])
diff --git a/test.log b/test.log
index dd1a1cc0..0a14c115 100644
--- a/test.log
+++ b/test.log
@@ -7,29 +7,27 @@ Testing mkin
✔ | 4 | Fitting the SFORB model [1.7 s]
✔ | 5 | Calculation of Akaike weights
✔ | 10 | Confidence intervals and p-values [9.4 s]
-✔ | 14 | Error model fitting [37.9 s]
+✔ | 14 | Error model fitting [37.6 s]
✔ | 6 | Test fitting the decline of metabolites from their maximum [0.8 s]
✔ | 1 | Fitting the logistic model [0.9 s]
✔ | 1 | Test dataset class mkinds used in gmkin
✔ | 12 | Special cases of mkinfit calls [2.3 s]
✔ | 9 | mkinmod model generation and printing [0.2 s]
-✔ | 3 | Model predictions with mkinpredict [0.3 s]
+✔ | 3 | Model predictions with mkinpredict [0.4 s]
✔ | 16 | Evaluations according to 2015 NAFTA guidance [4.1 s]
-✔ | 9 | Nonlinear mixed-effects models [12.0 s]
+✔ | 9 | Nonlinear mixed-effects models [11.9 s]
✔ | 4 | Calculation of maximum time weighted average concentrations (TWAs) [2.2 s]
✔ | 3 | Summary
✔ | 14 | Plotting [4.9 s]
✔ | 4 | AIC calculation
✔ | 4 | Residuals extracted from mkinfit models
-✔ | 2 | Complex test case from Schaefer et al. (2007) Piacenza paper [5.4 s]
-
⠏ | 0 | Summaries of old mkinfit objectsError in attr(val, "df") <- length(object$bparms.optim) + length(object$errparms) :
- Versuch ein Attribut von NULL zu setzen
-
✔ | 1 | Summaries of old mkinfit objects
-✔ | 4 | Results for synthetic data established in expertise for UBA (Ranke 2014) [7.1 s]
+✔ | 2 | Complex test case from Schaefer et al. (2007) Piacenza paper [5.3 s]
+✔ | 1 | Summaries of old mkinfit objects
+✔ | 4 | Results for synthetic data established in expertise for UBA (Ranke 2014) [7.2 s]
✔ | 9 | Hypothesis tests [37.0 s]
══ Results ═════════════════════════════════════════════════════════════════════
-Duration: 132.2 s
+Duration: 131.8 s
OK: 154
Failed: 0
diff --git a/tests/testthat/FOCUS_2006_D.csf b/tests/testthat/FOCUS_2006_D.csf
index c61b55c4..818c055a 100644
--- a/tests/testthat/FOCUS_2006_D.csf
+++ b/tests/testthat/FOCUS_2006_D.csf
@@ -5,7 +5,7 @@ Description:
MeasurementUnits: % AR
TimeUnits: days
Comments: Created using mkin::CAKE_export
-Date: 2020-04-17
+Date: 2020-04-18
Optimiser: IRLS
[Data]
diff --git a/tests/testthat/summary_DFOP_FOCUS_C.txt b/tests/testthat/summary_DFOP_FOCUS_C.txt
index 4f96c8d3..14e00f62 100644
--- a/tests/testthat/summary_DFOP_FOCUS_C.txt
+++ b/tests/testthat/summary_DFOP_FOCUS_C.txt
@@ -33,11 +33,6 @@ g_ilr 0.000000 -Inf Inf
Fixed parameter values:
None
-Results:
-
- AIC BIC logLik
- 29.02372 30.00984 -9.511861
-
Optimised, transformed parameters with symmetric confidence intervals:
Estimate Std. Error Lower Upper
parent_0 85.0000 0.66620 83.1500 86.8500
diff --git a/tests/testthat/summary_DFOP_FOCUS_D_deSolve.txt b/tests/testthat/summary_DFOP_FOCUS_D_deSolve.txt
index 5a9093c3..66ab9348 100644
--- a/tests/testthat/summary_DFOP_FOCUS_D_deSolve.txt
+++ b/tests/testthat/summary_DFOP_FOCUS_D_deSolve.txt
@@ -33,11 +33,6 @@ Fixed parameter values:
value type
m1_0 0 state
-Results:
-
- AIC BIC logLik
- 204.4486 212.6365 -97.22429
-
Optimised, transformed parameters with symmetric confidence intervals:
Estimate Std. Error Lower Upper
parent_0 99.600 1.57000 96.400 102.800
diff --git a/tests/testthat/summary_DFOP_FOCUS_D_eigen.txt b/tests/testthat/summary_DFOP_FOCUS_D_eigen.txt
index f597cad5..1626c5da 100644
--- a/tests/testthat/summary_DFOP_FOCUS_D_eigen.txt
+++ b/tests/testthat/summary_DFOP_FOCUS_D_eigen.txt
@@ -33,11 +33,6 @@ Fixed parameter values:
value type
m1_0 0 state
-Results:
-
- AIC BIC logLik
- 204.4486 212.6365 -97.22429
-
Optimised, transformed parameters with symmetric confidence intervals:
Estimate Std. Error Lower Upper
parent_0 99.600 1.57000 96.400 102.800
--
cgit v1.2.1