diff --git a/R/data_plot.R b/R/data_plot.R index ac0f37786..b88805721 100644 --- a/R/data_plot.R +++ b/R/data_plot.R @@ -29,7 +29,7 @@ #' - \link[=plot.see_check_outliers]{performance::check_outliers()} #' - \link[=plot.see_compare_performance]{performance::compare_performance()} #' - \link[=plot.see_performance_roc]{performance::performance_roc()} -#' - \link[=plot.see_performance_pp_check]{performance::check_posterior_predictions()} +#' - \link[=plot.see_performance_pp_check]{performance::check_predictions()} #' #' @param x An object. #' @param data The original data used to create this object. Can be a diff --git a/man/data_plot.Rd b/man/data_plot.Rd index af31261df..2cfb7d38b 100644 --- a/man/data_plot.Rd +++ b/man/data_plot.Rd @@ -47,7 +47,7 @@ for your object's class: \item \link[=plot.see_check_outliers]{performance::check_outliers()} \item \link[=plot.see_compare_performance]{performance::compare_performance()} \item \link[=plot.see_performance_roc]{performance::performance_roc()} -\item \link[=plot.see_performance_pp_check]{performance::check_posterior_predictions()} +\item \link[=plot.see_performance_pp_check]{performance::check_predictions()} } } \details{ diff --git a/man/figures/performance-1.png b/man/figures/performance-1.png index 02a83902c..6ae126a7e 100644 Binary files a/man/figures/performance-1.png and b/man/figures/performance-1.png differ diff --git a/tests/testthat/_snaps/plot.check_normality/check-normality-works-lm-density.svg b/tests/testthat/_snaps/plot.check_normality/check-normality-works-lm-density.svg index 7cd00cc0f..63b5704c0 100644 --- a/tests/testthat/_snaps/plot.check_normality/check-normality-works-lm-density.svg +++ b/tests/testthat/_snaps/plot.check_normality/check-normality-works-lm-density.svg @@ -21,82 +21,82 @@ - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - --2 --1 -0 -1 -2 - --2 --1 -0 -1 -2 -Standard Normal Distribution Quantiles -Sample Quantile Deviations + +-2 +-1 +0 +1 +2 + +-2 +-1 +0 +1 +2 +Standard Normal Distribution Quantiles +Sample Quantile Deviations Dots should fall along the line Normality of Residuals diff --git a/tests/testthat/_snaps/plot.check_normality/check-normality-works-lm-pp.svg b/tests/testthat/_snaps/plot.check_normality/check-normality-works-lm-pp.svg index 1609826e5..a12fe8332 100644 --- a/tests/testthat/_snaps/plot.check_normality/check-normality-works-lm-pp.svg +++ b/tests/testthat/_snaps/plot.check_normality/check-normality-works-lm-pp.svg @@ -21,84 +21,84 @@ - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - --0.2 --0.1 -0.0 -0.1 -0.2 - -0.00 -0.25 -0.50 -0.75 -1.00 -Standard Normal Cumulative Probability -Sample Cummulative Probability Deviations + +-0.2 +-0.1 +0.0 +0.1 +0.2 + +0.00 +0.25 +0.50 +0.75 +1.00 +Standard Normal Cumulative Probability +Sample Cummulative Probability Deviations Dots should fall along the line Normality of Residuals diff --git a/tests/testthat/_snaps/plot.check_normality/check-normality-works-lm-qq.svg b/tests/testthat/_snaps/plot.check_normality/check-normality-works-lm-qq.svg index 7cd00cc0f..63b5704c0 100644 --- a/tests/testthat/_snaps/plot.check_normality/check-normality-works-lm-qq.svg +++ b/tests/testthat/_snaps/plot.check_normality/check-normality-works-lm-qq.svg @@ -21,82 +21,82 @@ - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - --2 --1 -0 -1 -2 - --2 --1 -0 -1 -2 -Standard Normal Distribution Quantiles -Sample Quantile Deviations + +-2 +-1 +0 +1 +2 + +-2 +-1 +0 +1 +2 +Standard Normal Distribution Quantiles +Sample Quantile Deviations Dots should fall along the line Normality of Residuals diff --git a/tests/testthat/_snaps/plot.check_normality/check-normality-works-lmer-fixed.svg b/tests/testthat/_snaps/plot.check_normality/check-normality-works-lmer-fixed.svg index 8bcd7cb7a..f849aa286 100644 --- a/tests/testthat/_snaps/plot.check_normality/check-normality-works-lmer-fixed.svg +++ b/tests/testthat/_snaps/plot.check_normality/check-normality-works-lmer-fixed.svg @@ -21,221 +21,221 @@ - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - --50 -0 -50 - --40 -0 -40 -Standard Normal Distribution Quantiles -Sample Quantile Deviations + +-50 +0 +50 + +-40 +0 +40 +Standard Normal Distribution Quantiles +Sample Quantile Deviations Dots should fall along the line Normality of Residuals diff --git a/tests/testthat/_snaps/plot.check_normality/check-normality-works-lmer-random.svg b/tests/testthat/_snaps/plot.check_normality/check-normality-works-lmer-random.svg index 96297ddd3..54a40a0af 100644 --- a/tests/testthat/_snaps/plot.check_normality/check-normality-works-lmer-random.svg +++ b/tests/testthat/_snaps/plot.check_normality/check-normality-works-lmer-random.svg @@ -21,256 +21,256 @@ - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - -(Intercept) + + +(Intercept) - - + + - - -Days + + +Days - --2 --1 -0 -1 -2 - --2 --1 -0 -1 -2 - --10 -0 -10 - --60 --30 -0 -30 -60 -Theoretical Quantiles -RE Quantiles + +-2 +-1 +0 +1 +2 + +-2 +-1 +0 +1 +2 + +-10 +0 +10 + +-60 +-30 +0 +30 +60 +Theoretical Quantiles +RE Quantiles Dots should be plotted along the line Normality of Random Effects (Subject) diff --git a/tests/testthat/test-plot.performance_pp_check.R b/tests/testthat/test-plot.performance_pp_check.R index e66fa7c69..ff3c83e66 100644 --- a/tests/testthat/test-plot.performance_pp_check.R +++ b/tests/testthat/test-plot.performance_pp_check.R @@ -1,7 +1,7 @@ test_that("`print.see_performance_pp_check()` works", { set.seed(123) model <- lm(Sepal.Length ~ Species * Petal.Width + Petal.Length, data = iris) - result <- performance::check_posterior_predictions(model) + result <- performance::check_predictions(model) vdiffr::expect_doppelganger( title = "pp check - lm", diff --git a/vignettes/performance.Rmd b/vignettes/performance.Rmd index 1032e8182..0a3ae1fe9 100644 --- a/vignettes/performance.Rmd +++ b/vignettes/performance.Rmd @@ -217,7 +217,7 @@ _([related function documentation](https://easystats.github.io/performance/refer ```{r} model <- lm(mpg ~ wt + cyl + gear + disp, data = mtcars) -check_posterior_predictions(model) +check_predictions(model) ``` To check if the model properly captures the variation in the data, use @@ -225,7 +225,7 @@ To check if the model properly captures the variation in the data, use ```{r} model <- lm(mpg ~ wt + cyl + gear + disp, data = mtcars) -check_posterior_predictions(model, check_range = TRUE) +check_predictions(model, check_range = TRUE) ``` # Overall Model Check