From 6652a00ce2dc22bf2713cfdc6b538d6d38c86478 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 5 Feb 2025 18:04:28 +0100 Subject: [PATCH] (re)move vignettes --- {vignettes => WIP}/introduction_comparisons_1.Rmd | 4 ++-- {vignettes => WIP}/introduction_comparisons_2.Rmd | 0 {vignettes => WIP}/introduction_comparisons_3.Rmd | 0 {vignettes => WIP}/introduction_comparisons_4.Rmd | 0 {vignettes => WIP}/introduction_comparisons_5.Rmd | 0 vignettes/content.Rmd | 9 --------- 6 files changed, 2 insertions(+), 11 deletions(-) rename {vignettes => WIP}/introduction_comparisons_1.Rmd (97%) rename {vignettes => WIP}/introduction_comparisons_2.Rmd (100%) rename {vignettes => WIP}/introduction_comparisons_3.Rmd (100%) rename {vignettes => WIP}/introduction_comparisons_4.Rmd (100%) rename {vignettes => WIP}/introduction_comparisons_5.Rmd (100%) diff --git a/vignettes/introduction_comparisons_1.Rmd b/WIP/introduction_comparisons_1.Rmd similarity index 97% rename from vignettes/introduction_comparisons_1.Rmd rename to WIP/introduction_comparisons_1.Rmd index 6a38f11cc..2bf0ea619 100644 --- a/vignettes/introduction_comparisons_1.Rmd +++ b/WIP/introduction_comparisons_1.Rmd @@ -147,7 +147,7 @@ By default, when all focal terms are categorical, a pairwise comparison is perfo test_predictions(model1, "episode") # same as test_predictions(my_predictions) ``` -For our quantity of interest, the contrast between episode `r ht1$episode[1]`, we see the value `r round(ht1$Contrast[1], 2)`, which is exactly the difference between the predicted outcome for `episode = 1` (`r round(my_predictions$predicted[1], 2)`) and `episode = 2` (`r round(my_predictions$predicted[2], 2)`). The related p-value is `r round(ht1$p.value[1], 3)`, indicating that the difference between the predicted values of our outcome at these two levels of the factor _episode_ is indeed statistically significant. +For our quantity of interest, the contrast between episode `r ht1$episode[1]`, we see the value `r round(ht1$Difference[1], 2)`, which is exactly the difference between the predicted outcome for `episode = 1` (`r round(my_predictions$predicted[1], 2)`) and `episode = 2` (`r round(my_predictions$predicted[2], 2)`). The related p-value is `r round(ht1$p.value[1], 3)`, indicating that the difference between the predicted values of our outcome at these two levels of the factor _episode_ is indeed statistically significant. Since the `terms` argument in `test_predictions()` works in the same way as for `predict_response()`, you can directly pass "representative values" via that argument (for details, see [this vignette](https://strengejacke.github.io/ggeffects/articles/introduction_effectsatvalues.html)). For example, we could also specify the levels of `episode` directly, to simplify the output: @@ -368,4 +368,4 @@ Thanks to the great *marginaleffects* package, it is now possible to have a powe While the current implementation in `test_predictions()` already covers many common use cases for testing contrasts and pairwise comparison, there still might be the need for more sophisticated comparisons. In this case, I recommend using the [*marginaleffects*](https://marginaleffects.com/) package directly. Some further related recommended readings are the vignettes about [Comparisons](https://marginaleffects.com/vignettes/comparisons.html) or [Hypothesis Tests](https://marginaleffects.com/vignettes/hypothesis.html). -[Go to next vignette: **Significance Testing of Differences Between Predictions II: Comparisons of Slopes, Floodlight and Spotlight Analysis (Johnson-Neyman Intervals)**](https://strengejacke.github.io/ggeffects/articles/introduction_comparisons_2.html) \ No newline at end of file +[Go to next vignette: **Significance Testing of Differences Between Predictions II: Comparisons of Slopes, Floodlight and Spotlight Analysis (Johnson-Neyman Intervals)**](https://strengejacke.github.io/ggeffects/articles/introduction_comparisons_2.html) diff --git a/vignettes/introduction_comparisons_2.Rmd b/WIP/introduction_comparisons_2.Rmd similarity index 100% rename from vignettes/introduction_comparisons_2.Rmd rename to WIP/introduction_comparisons_2.Rmd diff --git a/vignettes/introduction_comparisons_3.Rmd b/WIP/introduction_comparisons_3.Rmd similarity index 100% rename from vignettes/introduction_comparisons_3.Rmd rename to WIP/introduction_comparisons_3.Rmd diff --git a/vignettes/introduction_comparisons_4.Rmd b/WIP/introduction_comparisons_4.Rmd similarity index 100% rename from vignettes/introduction_comparisons_4.Rmd rename to WIP/introduction_comparisons_4.Rmd diff --git a/vignettes/introduction_comparisons_5.Rmd b/WIP/introduction_comparisons_5.Rmd similarity index 100% rename from vignettes/introduction_comparisons_5.Rmd rename to WIP/introduction_comparisons_5.Rmd diff --git a/vignettes/content.Rmd b/vignettes/content.Rmd index 53aecd7b2..93741d768 100644 --- a/vignettes/content.Rmd +++ b/vignettes/content.Rmd @@ -27,15 +27,6 @@ The documentation of the *ggeffects* package, including many examples, is [avail - [Adjusted Predictions for Random Effects Models](https://strengejacke.github.io/ggeffects/articles/introduction_randomeffects.html) - [(Cluster) Robust Standard Errors](https://strengejacke.github.io/ggeffects/articles/practical_robustestimation.html) -## Interpretation and Significance Testing - -- [Contrasts and Pairwise Comparisons](https://strengejacke.github.io/ggeffects/articles/introduction_comparisons_1.html) -- [Floodlight and Spotlight Analysis (Johnson-Neyman Intervals)](https://strengejacke.github.io/ggeffects/articles/introduction_comparisons_2.html) -- [Contrasts and Pairwise Comparisons for GLM](https://strengejacke.github.io/ggeffects/articles/introduction_comparisons_3.html) -- [Contrasts and Pairwise Comparisons for Zero-Inflation Models](https://strengejacke.github.io/ggeffects/articles/introduction_comparisons_4.html) -- [Different Backends for Pairwise Comparisons](https://strengejacke.github.io/ggeffects/articles/introduction_comparisons_5.html) -- [Adding Partial Residuals to Effects Plots](https://strengejacke.github.io/ggeffects/articles/introduction_partial_residuals.html) - ## Creating and customizing plots and tables - [Plotting Adjusted Predictions](https://strengejacke.github.io/ggeffects/articles/introduction_plotmethod.html)