vincentarelbundock / pymarginaleffects

GNU General Public License v3.0
49 stars 9 forks source link

function to comparisons variables and tests #89

Closed LamAdr closed 7 months ago

LamAdr commented 7 months ago

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

vincentarelbundock commented 7 months ago

Thanks!