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

Hi all, 

 

Is there a way to pick out certain parts of your results and send to a new table? for example, in the solution for fixed effects below, I want just the estimate p- value and confidence interval in a new table but want to exclude the rest of the results : 

schatr2_0-1639608786715.png

what i want: 

estimate p value lower upper
-2.598 <.0001 -2.95 -2.2

 

I appreciate the help!

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

Here's some instructions and explanations on how to capture output that is shown.
https://blogs.sas.com/content/sastraining/2017/03/31/capturing-output-from-any-procedure-with-an-ods...

 

You don't specify the procedure so cannot help you with code but you can easily capture the table with an ODS statement and then filter out only the variables you want. It will likely look like the following:

 

ods output fixedEstimates = want (keep = estimtae pvalue lower upper);

@393310 wrote:

Hi all, 

 

Is there a way to pick out certain parts of your results and send to a new table? for example, in the solution for fixed effects below, I want just the estimate p- value and confidence interval in a new table but want to exclude the rest of the results : 

schatr2_0-1639608786715.png

what i want: 

estimate p value lower upper
-2.598 <.0001 -2.95 -2.2

 

I appreciate the help!


 

View solution in original post

1 REPLY 1
Reeza
Super User

Here's some instructions and explanations on how to capture output that is shown.
https://blogs.sas.com/content/sastraining/2017/03/31/capturing-output-from-any-procedure-with-an-ods...

 

You don't specify the procedure so cannot help you with code but you can easily capture the table with an ODS statement and then filter out only the variables you want. It will likely look like the following:

 

ods output fixedEstimates = want (keep = estimtae pvalue lower upper);

@393310 wrote:

Hi all, 

 

Is there a way to pick out certain parts of your results and send to a new table? for example, in the solution for fixed effects below, I want just the estimate p- value and confidence interval in a new table but want to exclude the rest of the results : 

schatr2_0-1639608786715.png

what i want: 

estimate p value lower upper
-2.598 <.0001 -2.95 -2.2

 

I appreciate the help!


 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 1 reply
  • 953 views
  • 0 likes
  • 2 in conversation