I'm modeling customer churn, experimenting with both Aalen Additive and Cox Proportional Hazards models, using the
lifelines package in Python. If this were a more typical machine learning model - one in which 'censorship' was not pertinent - I'd include temporal features like 'number of transactions in previous week,' 'average transactions over 1 week ago / average transactions over 2-3 weeks ago,' etc.
To fit the model, I have some observations in which a death event is observed, and others in which the customer is still, to date, 'alive.' As such, are the above types of features appropriate in these models? If so, how would you craft a feature that models something like * recent transaction velocity * ? Specifically, I can't quite wrap my head around how to represent this feature for an account that 'birthed' 12 months ago, and 'died' 6 months ago.