BookmarkSubscribeRSS Feed
Lijuv
Calcite | Level 5

Hi,

 

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.

 

Lijuv.

3 REPLIES 3
Reeza
Super User

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

 

Lijuv
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.

Reeza
Super User

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

 

http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_phreg_exampl...

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1470 views
  • 0 likes
  • 2 in conversation