BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Paul_NYS
Obsidian | Level 7

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;

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

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

4 REPLIES 4
Reeza
Super User

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

What version of SAS are you on?

Paul_NYS
Obsidian | Level 7

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

Paul_NYS
Obsidian | Level 7

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

Reeza
Super User

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?

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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