Building models with SAS Enterprise Miner, SAS Factory Miner, SAS Visual Data Mining and Machine Learning or just with programming

Survival Analysis Scoring SAS code

Reply
Occasional Contributor
Posts: 7

Survival Analysis Scoring SAS code

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
Occasional Contributor
Posts: 7

Re: Survival Analysis Scoring SAS code

 
Super User
Posts: 17,842

Re: Survival Analysis Scoring SAS code

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.

Occasional Contributor
Posts: 7

Re: Survival Analysis Scoring SAS code

I don't have em and need to run in base SAS.could you please give end to end SAS survival scoring code
Super User
Posts: 17,842

Re: Survival Analysis Scoring SAS code

Do you have a model already?

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

Occasional Contributor
Posts: 7

Re: Survival Analysis Scoring SAS code

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.

 

Occasional Contributor
Posts: 7

Re: Survival Analysis Scoring SAS code

 
Occasional Contributor
Posts: 7

Re: Survival Analysis Scoring SAS code

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

Ask a Question
Discussion stats
  • 7 replies
  • 392 views
  • 0 likes
  • 2 in conversation