Skip to content

Commit 915178f

Browse files
Issue #1640 error in assertion warning
1 parent 04a1c95 commit 915178f

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: marginaleffects
22
Title: Predictions, Comparisons, Slopes, Marginal Means, and Hypothesis Tests
3-
Version: 0.31.0.2
3+
Version: 0.31.0.3
44
Authors@R:
55
c(person(given = "Vincent",
66
family = "Arel-Bundock",

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
Bugs:
88

99
* Error when merging the original data back into `comparisons()` when the data includes some list columns. The problem is that `data.table` does not support that column type. We now return the original data.table error as a warning, and do not merge the data back. Thanks to @raffaem for report #1638.
10+
* Improve warning message for hypothesis string order. Thanks to @zakarydraper for report #1640.
1011

1112
## 0.31.0
1213

R/hypothesis_string.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ mod <- lm(mpg ~ am * carb, data = mtcars)
3535
3636
# assertion for safety
3737
p <- avg_predictions(mod, by = 'carb')
38-
stopifnot(p$carb[1] != 1 || p$carb[2] != 2)
38+
stopifnot(p$carb[1] == 1, p$carb[2] == 2)
3939
4040
# hypothesis test
4141
avg_predictions(mod, by = 'carb', hypothesis = 'b1 - b2 = 0')

0 commit comments

Comments
 (0)