BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Hello_there
Lapis Lazuli | Level 10

Hi,

 

I'm trying to program a table that includes type 3 p values and bonferroni adjusted p values from PROC GLM? Is there a way to do that?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

Any of the output tables can be sent to a data set with the ODS OUTPUT statement. You need to know the name of the table created by the procedure and use

 

ods output tablename=nameofdesireddataset.

 

You can find the names of the tables generated by the procedure in the details tab of the online documentation such as here:

https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_glm_details70.htm

 

or run your procedure code with the option ODS Trace on such as

ods trace on;

proc glm data=yourdata;
  <glm statements>
run;

ods trace off;

The LOG will show the names of all the tables generated so you can use them in the Ods output.

View solution in original post

3 REPLIES 3
ballardw
Super User

Any of the output tables can be sent to a data set with the ODS OUTPUT statement. You need to know the name of the table created by the procedure and use

 

ods output tablename=nameofdesireddataset.

 

You can find the names of the tables generated by the procedure in the details tab of the online documentation such as here:

https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_glm_details70.htm

 

or run your procedure code with the option ODS Trace on such as

ods trace on;

proc glm data=yourdata;
  <glm statements>
run;

ods trace off;

The LOG will show the names of all the tables generated so you can use them in the Ods output.

PaigeMiller
Diamond | Level 26

You can output the Type III p-values to a SAS data set, using ODS OUTPUT, and then program additional calculations as you see fit.

 

The command you should insert in PROC GLM is

 

   ods output modelanova=modelanova;
--
Paige Miller

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
  • 3 replies
  • 1450 views
  • 2 likes
  • 4 in conversation