BookmarkSubscribeRSS Feed
ssrao
Calcite | Level 5
Hi,
Could you please anyone share survival analysis scoring SAS code and tell how to calculate time frame say 3,6,9,12months.

Thanks in advance and waiting for your replies
7 REPLIES 7
ssrao
Calcite | Level 5
 
Reeza
Super User

Are you using SAS EM or Base SAS? You've posed this in data mining so I'm not sure.

 

EM should provide score code.

ssrao
Calcite | Level 5
I don't have em and need to run in base SAS.could you please give end to end SAS survival scoring code
Reeza
Super User

Do you have a model already?

Please post your current PROC PHREG code, and if possible sample data.

ssrao
Calcite | Level 5

Hi,

Please find below sample data.

Please find below fields.Churn column has 2 values and 0 is nothing but churn.

 

tenure Churn age Drop Calls Recharge Amount(Rs)

3, 0, 41, 0, 50

6 ,1, 30, 2, 100

1 ,1, 36, 6, 200

0 ,1, 32, 10, 20

 

proc phreg data=churn;
model tenure*churn(0)=dropcalls rechargeamount(rs) age;
run;

I built model now and need to score for testing dataset and also tell me how to calculate time frame say 3,6 and 9 months.

 

ssrao
Calcite | Level 5
 
ssrao
Calcite | Level 5

Can anyone give survival analysis score SAS code based on below sample dataset

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!

How to choose a machine learning algorithm

Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 7 replies
  • 1387 views
  • 0 likes
  • 2 in conversation