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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 2624 views
  • 0 likes
  • 2 in conversation