From e1c951cff5a8df2522476b2cf60da848110fae31 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 27 Jun 2024 14:53:19 +0200 Subject: [PATCH] warning --- R/demean.R | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/R/demean.R b/R/demean.R index 4b5d823ab..f4f54084b 100644 --- a/R/demean.R +++ b/R/demean.R @@ -338,6 +338,10 @@ degroup <- function(x, # with all combinations of the levels of the interaction terms. This will # become our new "by" variable if (length(interactions_yes)) { + ## TODO: resolve this warning, or remove this feature if not correct + insight::format_warning( + "Note that de-meaning for nested data structures (i.e. interaction terms for the `by`-variable) is not yet validated. Please check the results." # nolint + ) interaction_terms <- all.vars(stats::as.formula(paste("~", interactions_yes))) new_dat <- data_unite( x,