Help using Base SAS procedures

Proc lifetest

Accepted Solution Solved
Reply
Regular Contributor
Posts: 216
Accepted Solution

Proc lifetest

Hi

Does anyone know how to modify the below proc lifetest function to get the result that is in the attached spreadsheet in tab 'used to get'? When I run the below I am getting a result that is what is in 'get now' tab.

Paul

proc lifetest data=issuejoinedNNNA outsurv=issuejoinedNNNAout ;

  ods select Quartiles;

  ods output Quartiles=annual;

  time dur_filing_issuejoin*censor_filing_issue(1);

  strata cnty_name filingYear;

run;


Accepted Solutions
Solution
‎12-21-2012 11:41 AM
Super User
Posts: 17,840

Re: Proc lifetest

Both have output options in BASE SAS so you would be able to get it via code. When you run the code below and then close the dialogs/outputs, do you see the table called annual?

View solution in original post


All Replies
Super User
Posts: 17,840

Re: Proc lifetest

The first looks like the output from quartiles, ie annual and the second from outsurv, ie issuejoinedNNNAout.

What version of SAS are you on?

Regular Contributor
Posts: 216

Re: Proc lifetest

I am using Enterprise Guide 5.1. Based on your response, what I would like to do is to save the output from lifetest using quartiles and from Proc Means in a data set. Neither of these two functions has an 'out' option. Does anyone know how to do this?

Paul

Regular Contributor
Posts: 216

Re: Proc lifetest

Also, in Enterprise Guide, there is a tab called 'Output Data' that appears when you run something (similar to the below). How do I export the contents of 'Output Data' to a data set?

Paul

proc lifetest data=issuejoinedNNNA;

  ods select Quartiles;

  ods output Quartiles=annual;

  time dur_filing_issuejoin*censor_filing_issue(1);

  strata cnty_name filingYear;

run;

Pau

Solution
‎12-21-2012 11:41 AM
Super User
Posts: 17,840

Re: Proc lifetest

Both have output options in BASE SAS so you would be able to get it via code. When you run the code below and then close the dialogs/outputs, do you see the table called annual?

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 232 views
  • 3 likes
  • 2 in conversation