A stochastic-covariate failure model with an application to case-control analysis.