Skip to content

Commit ab74f98

Browse files
committed
fix
1 parent 0b7dd60 commit ab74f98

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: insight
33
Title: Easy Access to Model Information for Various Model Objects
4-
Version: 1.3.0.3
4+
Version: 1.3.0.4
55
Authors@R:
66
c(person(given = "Daniel",
77
family = "Lüdecke",

R/get_predicted_bayesian.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ get_predicted.stanreg <- function(x,
124124
# for mixture models, which predict the class membership, we stop
125125
# here and just return the predicted class membership
126126
mixture_output <- do.call(brms::pp_mixture, fun_args)
127-
return(apply(mixture_output[, 1, ], 1, which.max))
127+
out <- data.frame(Predicted = apply(mixture_output[, 1, ], 1, which.max))
128+
return(out)
128129
}
129130
}
130131

0 commit comments

Comments
 (0)