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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

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