ngreifer / cobalt

Covariate Balance Tables and Plots - An R package for assessing covariate balance
https://ngreifer.github.io/cobalt/
72 stars 11 forks source link

Interations with binary variables #14

Closed victorn1 closed 6 years ago

victorn1 commented 6 years ago

I'd suggest that, for a binary variable, interactions be calculated for the both values of the variable, not just for 1 (for 0-1 variables). Let, say, we have a continuous variable a and a binary variable b. Now only the distribution of ab is assessed. It would be more correct to assess the both distributions: of ab and a(1-b).

ngreifer commented 6 years ago

Another great suggestion, and one that will be easy to implement.

ngreifer commented 6 years ago

Done!

victorn1 commented 6 years ago

Thank you very much for your help! Waiting for CRAN package update.