turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- Analytics
- /
- Data Mining
- /
- Proc Phreg - calc s(t)

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

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;

run;

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**".

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

03-13-2014 04:33 PM

Timelist option on the baseline statement. See the docs.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

03-13-2014 04:35 PM

Isn't this option only for bayesian model. I am doing a classical model here.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

03-13-2014 05:03 PM

If you run out of memory perhaps scoring by 'hand', a manual calculation in datastep?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

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.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

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.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

03-13-2014 05:30 PM

That is what I am doing right now If I get the manual calc for survival estimates I would definitely go that way.