diff --git a/DESCRIPTION b/DESCRIPTION index 98546e117..950418f45 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Type: Package Package: parameters Title: Processing of Model Parameters -Version: 0.22.2.17 +Version: 0.22.2.18 Authors@R: c(person(given = "Daniel", family = "Lüdecke", diff --git a/R/format.R b/R/format.R index 857068863..517c02600 100644 --- a/R/format.R +++ b/R/format.R @@ -573,13 +573,13 @@ format.parameters_sem <- function(x, } # footer: r-squared - if (isTRUE(show_r2)) { - footer <- .add_footer_r2(footer, digits, r2, type) + if (isTRUE(show_rmse)) { + footer <- .add_footer_values(footer, digits, value = rmse, text = "RMSE ", type) } # footer: r-squared - if (isTRUE(show_rmse)) { - footer <- .add_footer_values(footer, digits, value = rmse, text = "RMSE ", type) + if (isTRUE(show_r2)) { + footer <- .add_footer_r2(footer, digits, r2, type) } # footer: p-adjustment diff --git a/tests/testthat/_snaps/model_parameters.fixest.md b/tests/testthat/_snaps/model_parameters.fixest.md index c095a3fe0..dacb2944e 100644 --- a/tests/testthat/_snaps/model_parameters.fixest.md +++ b/tests/testthat/_snaps/model_parameters.fixest.md @@ -12,6 +12,6 @@ Model: QoL ~ time + phq4 (564 Observations) Sigma: 12.365 (df = 561) - r2: 0.743; ar2: 0.613; wr2: 0.180; war2: 0.175 RMSE : 10.069 + r2: 0.743; ar2: 0.613; wr2: 0.180; war2: 0.175 diff --git a/tests/testthat/_snaps/model_parameters.glm.md b/tests/testthat/_snaps/model_parameters.glm.md index 716d9eeb0..7788aa7bf 100644 --- a/tests/testthat/_snaps/model_parameters.glm.md +++ b/tests/testthat/_snaps/model_parameters.glm.md @@ -10,8 +10,8 @@ Model: mpg ~ wt (32 Observations) Sigma: 3.046 (df = 30) - R2: 0.753; adjusted R2: 0.745 RMSE : 2.949 + R2: 0.753; adjusted R2: 0.745 --- diff --git a/tests/testthat/_snaps/model_parameters.mixed.md b/tests/testthat/_snaps/model_parameters.mixed.md index c89fefb71..838291492 100644 --- a/tests/testthat/_snaps/model_parameters.mixed.md +++ b/tests/testthat/_snaps/model_parameters.mixed.md @@ -63,8 +63,8 @@ Model: wt ~ cyl (32 Observations) Sigma: 0.594 (df = 28) - Conditional R2: 0.628; Marginal R2: 0.550 RMSE : 0.564 + Conditional R2: 0.628; Marginal R2: 0.550 Message Uncertainty intervals (equal-tailed) and p-values (two-tailed) computed diff --git a/tests/testthat/_snaps/printing.md b/tests/testthat/_snaps/printing.md index 750751645..1b086c924 100644 --- a/tests/testthat/_snaps/printing.md +++ b/tests/testthat/_snaps/printing.md @@ -93,8 +93,8 @@ Model: Sepal.Length ~ Species * Petal.Length (150 Observations) Sigma: 0.336 (df = 144) - R2: 0.840; adjusted R2: 0.835 RMSE : 0.330 + R2: 0.840; adjusted R2: 0.835 Message Uncertainty intervals (equal-tailed) and p-values (two-tailed) computed