vincentarelbundock / marginaleffects

R package to compute and plot predictions, slopes, marginal means, and comparisons (contrasts, risk ratios, odds, etc.) for over 100 classes of statistical and ML models. Conduct linear and non-linear hypothesis tests, or equivalence tests. Calculate uncertainty estimates using the delta method, bootstrapping, or simulation-based inference
https://marginaleffects.com
Other
392 stars 43 forks source link

`inferences()` does not work with `transform` #1115

Closed vincentarelbundock closed 1 month ago

vincentarelbundock commented 1 month ago

The problem is that sanitize_transform() sometimes wraps the transform argument in a named list, which then fails the assertion.

https://stackoverflow.com/questions/78429165/using-inferences-with-comparison-and-transform-arguments

vincentarelbundock commented 1 month ago

https://github.com/vincentarelbundock/marginaleffects/pull/1116