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
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.
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.
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;
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!
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.
Ready to level-up your skills? Choose your own adventure.