From 4abeb85b74d1c678d44b21abe931c3d323e033d6 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 25 Feb 2025 11:48:58 +0100 Subject: [PATCH] fix --- R/get_datagrid.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/get_datagrid.R b/R/get_datagrid.R index 78cae3fe6..e8c8a0db1 100644 --- a/R/get_datagrid.R +++ b/R/get_datagrid.R @@ -606,7 +606,7 @@ get_datagrid.default <- function(x, w <- insight::find_weights(x) if (!is.null(w)) { if (include_weights) { - vm[w] <- mean(get_weights(m, remove_na = TRUE, null_as_ones = TRUE)) + vm[w] <- mean(get_weights(x, remove_na = TRUE, null_as_ones = TRUE)) } else if (!inherits(x, "brmsfit")) { # for lme, can't be NA if (inherits(x, c("lme", "gls"))) {