A Generalized Additive Model for Binary Rare Events Data: an Application to Credit Defaults.