From 510436646b1bdd5b8cfab70be29334bd3cc9c828 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Fri, 29 May 2020 15:03:04 +0200 Subject: Warn if standardized residuals are unlikely normal This revealed a bug in the data returned in mkinfit$data in the case of the d_3 algorithm, which also affected the residual plot - the data from the direct fitting was not returned even if this was the better method. --- test.log | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) (limited to 'test.log') diff --git a/test.log b/test.log index e026e559..a1fa7dfb 100644 --- a/test.log +++ b/test.log @@ -2,10 +2,10 @@ Loading mkin Testing mkin ✔ | OK F W S | Context ✔ | 2 | Export dataset for reading into CAKE -✔ | 13 | Results for FOCUS D established in expertise for UBA (Ranke 2014) [1.1 s] +✔ | 14 | Results for FOCUS D established in expertise for UBA (Ranke 2014) [0.9 s] ✔ | 4 | Calculation of FOCUS chi2 error levels [0.4 s] ✔ | 7 | Fitting the SFORB model [3.3 s] -✔ | 5 | Analytical solutions for coupled models [3.1 s] +✔ | 5 | Analytical solutions for coupled models [3.2 s] ✔ | 5 | Calculation of Akaike weights ✔ | 10 | Confidence intervals and p-values [1.1 s] ✔ | 14 | Error model fitting [4.0 s] @@ -15,22 +15,29 @@ Testing mkin ✔ | 12 | Special cases of mkinfit calls [0.6 s] ✔ | 8 | mkinmod model generation and printing [0.2 s] ✔ | 3 | Model predictions with mkinpredict [0.4 s] -✔ | 16 | Evaluations according to 2015 NAFTA guidance [1.6 s] -✔ | 9 | Nonlinear mixed-effects models [7.7 s] +✔ | 16 | Evaluations according to 2015 NAFTA guidance [1.5 s] +✔ | 9 | Nonlinear mixed-effects models [7.8 s] ✔ | 4 | Calculation of maximum time weighted average concentrations (TWAs) [2.4 s] -✔ | 3 | Summary -✔ | 14 | Plotting [1.5 s] +✔ | 3 2 | Summary +──────────────────────────────────────────────────────────────────────────────── +test_plots_summary_twa.R:59: warning: Summaries are reproducible +The p-value for the Shapiro-Wilk test of normality on standardized residuals is < 0.05 + +test_plots_summary_twa.R:72: warning: Summaries are reproducible +The p-value for the Shapiro-Wilk test of normality on standardized residuals is < 0.05 +──────────────────────────────────────────────────────────────────────────────── +✔ | 14 | Plotting [1.4 s] ✔ | 4 | AIC calculation ✔ | 4 | Residuals extracted from mkinfit models -✔ | 2 | Complex test case from Schaefer et al. (2007) Piacenza paper [1.4 s] +✔ | 2 | Complex test case from Schaefer et al. (2007) Piacenza paper [1.5 s] ✔ | 1 | Summaries of old mkinfit objects -✔ | 4 | Results for synthetic data established in expertise for UBA (Ranke 2014) [2.3 s] +✔ | 4 | Results for synthetic data established in expertise for UBA (Ranke 2014) [2.1 s] ✔ | 9 | Hypothesis tests [6.6 s] ══ Results ═════════════════════════════════════════════════════════════════════ -Duration: 38.5 s +Duration: 38.3 s -OK: 159 +OK: 160 Failed: 0 -Warnings: 0 +Warnings: 2 Skipped: 0 -- cgit v1.2.1