The objective is to build a survival model..Predicting when customers are more likely to return and purchase...For example, we are expecting the customer 101 to return on w9 etc.The data below represents the weekly customer transactions they have made in the last 13 weeks...(the value in the data is the amount spent in that week).
customer_id |
W1 |
W2 |
W3 |
W4 |
W5 |
W6 |
W7 |
W8 |
W9 |
W10 |
W11 |
W12 |
W13 |
100 |
. |
. |
. |
. |
. |
. |
2.5 |
. |
. |
2.5 |
2.5 |
. |
. |
101 |
4.5 |
2 |
3.5 |
2.5 |
2.5 |
2.5 |
. |
. |
4.5 |
5 |
. |
. |
. |
102 |
. |
6.5 |
. |
. |
. |
. |
. |
. |
6.5 |
. |
. |
9 |
. |
103 |
. |
5 |
10 |
. |
. |
. |
9 |
8.5 |
13 |
. |
7 |
18 |
7 |
104 |
2 |
2 |
. |
. |
. |
. |
. |
. |
2 |
. |
4.5 |
2 |
. |
Hello All,
I would appreciate if you could answer my message below..
Thank You
I think the Cox model is not the right model to use when the goal is to predict the event time. This is because of the non-parametric baseline hazard rate, that make it difficult to translate the estimated hazardratios to predicted eventtimes. This can be seen by the fact that the Cox model doesnt care about when things happens, but only in what order things happpens.
Then better use the full parametric accelrated failure time model (for example the weibull model). For this you can use PROC LIFEREG.
There is a very good documentation in the SAS help. And also some good examples. As far as I remember, you can use the output statement, and there get predicted values.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.