SAS Procedures

Help using Base SAS procedures
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-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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