Skip to content

Commit a690f60

Browse files
committed
fix for bayestestR
1 parent ed23be8 commit a690f60

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

DESCRIPTION

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: modelbased
33
Title: Estimation of Model-Based Predictions, Contrasts and Means
4-
Version: 0.8.8
4+
Version: 0.8.8.1
55
Authors@R:
66
c(person(given = "Dominique",
77
family = "Makowski",
@@ -34,11 +34,11 @@ BugReports: https://github.com/easystats/modelbased/issues
3434
Depends:
3535
R (>= 3.6)
3636
Imports:
37-
bayestestR (>= 0.13.2),
38-
datawizard (>= 0.11.0),
37+
bayestestR (>= 0.15.0),
38+
datawizard (>= 0.13.0),
3939
effectsize (>= 0.8.8),
40-
insight (>= 0.20.0),
41-
parameters (>= 0.21.7),
40+
insight (>= 0.20.5),
41+
parameters (>= 0.22.2),
4242
performance (>= 0.12.0),
4343
graphics,
4444
stats,

NEWS.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# modelbased (development version)
1+
# modelbased 0.8.9
2+
3+
- Fixed issues related to updates of other *easystats* packages.
24

35
# modelbased 0.8.6
46

@@ -102,4 +104,3 @@
102104
# modelbased 0.1.0
103105

104106
- Added a `NEWS.md` file to track changes to the package
105-

R/get_emmeans.R

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,12 @@ model_emmeans <- get_emmeans
115115
if (insight::model_info(model)$is_bayesian) {
116116
means <- parameters::parameters(estimated, ci = ci, ...)
117117
means <- .clean_names_bayesian(means, model, transform, type = "mean")
118-
means <- cbind(estimated@grid, means)
119-
means[[".wgt."]] <- NULL # Drop the weight column
118+
em_grid <- as.data.frame(estimated@grid)
119+
em_grid[[".wgt."]] <- NULL # Drop the weight column
120+
colums_to_add <- setdiff(colnames(em_grid), colnames(means))
121+
if (length(colums_to_add)) {
122+
means <- cbind(em_grid[colums_to_add], means)
123+
}
120124
} else {
121125
means <- as.data.frame(stats::confint(estimated, level = ci))
122126
means$df <- NULL

0 commit comments

Comments
 (0)