Interaction Test between SNP * Covariate for a Binary Outcome


I found that hail can do interaction test for a continuous outcome using the function, hl.agg.linreg.
Can we do the interaction test between snp and covariate for a binary outcome?


Yes, this is possible Jaeyoon. You’d put your multiplicative interaction term into your covariates:

Ack, unfortunately this is not so simple. The covariates expected in hl.logistic_regression_rows must be column fields, they cannot be entry fields. We are building infrastructure that will make it possible to write logistic regression models like this on Hail’s python interface, but it won’t be ready for some months.

That’s good to know! Some months from now :slight_smile:

Thank you very much for answering my question. I appreciate it.



Hi, do you have any updates on running an interaction test for binary outcomes (logistic regression).