BookmarkSubscribeRSS Feed
Calcite | Level 5



I am working on a project where i have to estimate the time when a customer will exactly churn. I have historical data of churners and active customers and their aggregated(one raw per customer ID) KPIs as training data.I tried to use Proc PHreg but I am not able to get the time estimate. Is there any workaround required using the estimates? or there is a different procedure to achieve this?


Basically I want to estimate how many customers will churn in 30 days , 60 days etc.


Thanks in advance.



Super User

Isn't the survival estimate at 30 days or failure depending on how you've defined your outcomes?


Calcite | Level 5

Thanks Reeza for the reply.


Ok! that means i have to define the time period somewhere in the code for me to get the estimate.  I am not sure which option of the code takes an input from the user to define the time period. It will be really great if you can share any example of code that i can use in my context.


Thank you.

Super User

Check the examples in the documentation. This one shows how to get the survival estimates for the time values.



Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg



Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 2 in conversation