03-13-2014 04:18 PM
How do I calculated S(t) at a particular time t using proc phreg.
Proc phreg data = a.input;
model tenure * target (0) =a1 a2 a3/ selection = stepwise ties = efron;
baseline out = out1 covariates = sample survival = s;
I the above example if I pass covariates = sample it gives me survival estimates for all possible values of t present in a.input. My datasets are very huge and I am getting memory error when I try to score. I need to calculated s(30) only for my dataset "sample".
03-13-2014 05:06 PM
Yes but I need help on this. I understand I can get Xbeta value and the baseline estimates. I need help with the formula to maunally calc it . My values are not matching with what sas provides.
03-13-2014 05:28 PM
I'm sure there's many ways to do that, but I don't feel like breaking out my stats book
How about breaking up your sample dataset and running the whole thing a few times via a macro.