From 1dc2a099240c8fa5a447167df7ac1b84eb4f1a42 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 15 Nov 2023 18:42:50 +0100 Subject: [PATCH] `model_parameters()` on marginaleffects::predictions()-object defaults to `exponentiate = TRUE` Fixes #916 --- R/methods_marginaleffects.R | 2 +- man/model_parameters.aov.Rd | 3 +++ man/model_parameters.htest.Rd | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/R/methods_marginaleffects.R b/R/methods_marginaleffects.R index 701cada2f..87a6eae3f 100644 --- a/R/methods_marginaleffects.R +++ b/R/methods_marginaleffects.R @@ -65,7 +65,7 @@ model_parameters.slopes <- model_parameters.marginaleffects #' @export model_parameters.predictions <- function(model, ci = 0.95, - exponentiate = TRUE, + exponentiate = FALSE, ...) { insight::check_if_installed("marginaleffects") diff --git a/man/model_parameters.aov.Rd b/man/model_parameters.aov.Rd index ab2aba594..0b769fb43 100644 --- a/man/model_parameters.aov.Rd +++ b/man/model_parameters.aov.Rd @@ -124,6 +124,9 @@ Parameters from ANOVAs \item For an object of class \code{htest}, data is extracted via \code{\link[insight:get_data]{insight::get_data()}}, and passed to the relevant function according to: \itemize{ \item A \strong{t-test} depending on \code{type}: \code{"cohens_d"} (default), \code{"hedges_g"}, or one of \code{"p_superiority"}, \code{"u1"}, \code{"u2"}, \code{"u3"}, \code{"overlap"}. +\itemize{ +\item For a \strong{Paired t-test}: depending on \code{type}: \code{"rm_rm"}, \code{"rm_av"}, \code{"rm_b"}, \code{"rm_d"}, \code{"rm_z"}. +} \item A \strong{Chi-squared tests of independence} or \strong{Fisher's Exact Test}, depending on \code{type}: \code{"cramers_v"} (default), \code{"tschuprows_t"}, \code{"phi"}, \code{"cohens_w"}, \code{"pearsons_c"}, \code{"cohens_h"}, \code{"oddsratio"}, \code{"riskratio"}, \code{"arr"}, or \code{"nnt"}. \item A \strong{Chi-squared tests of goodness-of-fit}, depending on \code{type}: \code{"fei"} (default) \code{"cohens_w"}, \code{"pearsons_c"} \item A \strong{One-way ANOVA test}, depending on \code{type}: \code{"eta"} (default), \code{"omega"} or \code{"epsilon"} -squared, \code{"f"}, or \code{"f2"}. diff --git a/man/model_parameters.htest.Rd b/man/model_parameters.htest.Rd index 6d97a42c9..f58bba0b3 100644 --- a/man/model_parameters.htest.Rd +++ b/man/model_parameters.htest.Rd @@ -105,6 +105,9 @@ Parameters of h-tests (correlations, t-tests, chi-squared, ...). \item For an object of class \code{htest}, data is extracted via \code{\link[insight:get_data]{insight::get_data()}}, and passed to the relevant function according to: \itemize{ \item A \strong{t-test} depending on \code{type}: \code{"cohens_d"} (default), \code{"hedges_g"}, or one of \code{"p_superiority"}, \code{"u1"}, \code{"u2"}, \code{"u3"}, \code{"overlap"}. +\itemize{ +\item For a \strong{Paired t-test}: depending on \code{type}: \code{"rm_rm"}, \code{"rm_av"}, \code{"rm_b"}, \code{"rm_d"}, \code{"rm_z"}. +} \item A \strong{Chi-squared tests of independence} or \strong{Fisher's Exact Test}, depending on \code{type}: \code{"cramers_v"} (default), \code{"tschuprows_t"}, \code{"phi"}, \code{"cohens_w"}, \code{"pearsons_c"}, \code{"cohens_h"}, \code{"oddsratio"}, \code{"riskratio"}, \code{"arr"}, or \code{"nnt"}. \item A \strong{Chi-squared tests of goodness-of-fit}, depending on \code{type}: \code{"fei"} (default) \code{"cohens_w"}, \code{"pearsons_c"} \item A \strong{One-way ANOVA test}, depending on \code{type}: \code{"eta"} (default), \code{"omega"} or \code{"epsilon"} -squared, \code{"f"}, or \code{"f2"}.