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

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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