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).
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.
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.
Hi Reeza,
Do I attach the PROC APPEND code inside the GLM macro or the GLM LOOP macro?
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.