DATA Step, Macro, Functions and more

Help with managing GLM output results

Accepted Solution Solved
Reply
New Contributor
Posts: 4
Accepted Solution

Help with managing GLM output results

Hi guys!

I have been tasked to create macros to run PROC GENMOD (given macro name as %genmod) in iterations so as to allow SAS to select variables for me.

%if i=1;

%do &genmod &until &pvalue>0.05....


Essentially, i will obtain the final type3 wald results after all the iterations. However, I will love to obtain and see the type3 wald results for each iterations as well.


I have been pulling my hair to figure how to incorporate a macro/data step. I tried to manipulate ODS OUTPUT but still fail to obtain a favourable result.


Thank you in advance for your help, kind person(s).



Accepted Solutions
Solution
‎07-29-2015 12:50 PM
Super User
Posts: 19,772

Re: Help with managing GLM output results

Have you figured out how to capture the data for a single iteration?

Once you have that then add an append to your loop so you keep the table for reach iteration.

View solution in original post


All Replies
Solution
‎07-29-2015 12:50 PM
Super User
Posts: 19,772

Re: Help with managing GLM output results

Have you figured out how to capture the data for a single iteration?

Once you have that then add an append to your loop so you keep the table for reach iteration.

New Contributor
Posts: 4

Re: Help with managing GLM output results

Hi Reeza,

Do I attach the PROC APPEND code inside the GLM macro or the GLM LOOP macro?

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 192 views
  • 0 likes
  • 2 in conversation