Half classification, half regression model? I'm trying to implement a model that predicts whether a user pays for something, and if so, how long it takes for them to pay. I intuit the output of this being either a label (0) or a real number. Is there such thing as a half classification, half regression model? Or am I misinterpreting the problem?
Edit: to clarify, paying or not paying in a certain time frame makes a difference, with those not paying effectively having a False/0 label. The more detailed context is that this is a prepayment model. (I see how my original explanation may be confusing).

Interesting question, it depends on how complicated you want to get but in the most straight forward models no. Assuming we stick to something like simple linear regression here are three options:

*

*Do the first in sequence: first fit whether they bought, then fit the time on only the data where that's applicable. This is probably the best method.

*In your training set, assign everyone who didn't buy something a negative time (say -1). Then, fit to time only and assume that anyone with any negative time has not bought something.

*Are you happy with discrete time data? If so, you could do regression onto the set of ([didn't buy], [bought, time1], [bought, time2],...). This will have some issues, like the fact that you have single a massively over represented category but you can try to fix that with weighting.

In general I would suggest just doing the first method, it would be hard to fit "simultaneously" without having to do some kind of reweighting.
