Skip to content

Commit 48bee4c

Browse files
committed
missed
1 parent e55b183 commit 48bee4c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/methods_marginaleffects.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ model_parameters.marginaleffects <- function(model,
1212
insight::check_if_installed("marginaleffects")
1313

1414
# Bayesian models have posterior draws as attribute
15-
is_bayesian <- !is.null(attributes(model)$posterior_draws)
15+
is_bayesian <- !is.null(suppressWarnings(marginaleffects::get_draws(model, "PxD")))
1616

1717
if (is_bayesian) {
1818
# Bayesian
@@ -107,6 +107,8 @@ model_parameters.predictions <- function(model,
107107
verbose = TRUE,
108108
...) {
109109
insight::check_if_installed("marginaleffects")
110+
111+
# Bayesian models have posterior draws as attribute
110112
is_bayes <- !is.null(suppressWarnings(marginaleffects::get_draws(model, "PxD")))
111113

112114
if (is_bayes) {

0 commit comments

Comments
 (0)