The option (from R's issue #527) to pass a function to comparisons' variables argument seemed not implemented, and I figured it wouldn't be too hard to add. But maybe there's a reason it wasn't there yet? Should we be more cautious handling the output of the custom function?
Tests translated from https://github.com/vincentarelbundock/marginaleffects/blob/main/inst/tinytest/test-comparisons.R
The option (from R's issue #527) to pass a function to
comparisons
'variables
argument seemed not implemented, and I figured it wouldn't be too hard to add. But maybe there's a reason it wasn't there yet? Should we be more cautious handling the output of the custom function?Thanks