I'm doing differential item functioning (DIF) analyses using the CMH in Proc Freq and based on the breslow-day test of
Homogeneity of the Odds Ratios, there appears to be some nonuniform DIF. My question is whether I can use a keyword to request that the odds ratios be saved/printed for each of my 10 strata.
I've looked on the SAS 9.3 documentation for this proc and can't find any related information.
I'm using SAS 9.4
@Jaime2 wrote:
I'm doing differential item functioning (DIF) analyses using the CMH in Proc Freq and based on the breslow-day test of
Homogeneity of the Odds Ratios, there appears to be some nonuniform DIF. My question is whether I can use a keyword to request that the odds ratios be saved/printed for each of my 10 strata.
I've looked on the SAS 9.3 documentation for this proc and can't find any related information.
I'm using SAS 9.4
It would help to show the code you are currently running. Some of the options to create output data sets, which is how I interpret "saved" require knowing which options were used to create the output. The OUTPUT statement may suffice or likely ODS OUTPUT.
Hi, Thanks for your reply - 'CMH' is the only option I have in the tables statement. I don't see any odds ratios for the individual strata, only the general odds ratio.
proc freq data =mydata;
tables stratum*mode*item&i./ CMH ;
Here's some instructions and explanations on how to capture output that is shown.
https://blogs.sas.com/content/sastraining/2017/03/31/capturing-output-from-any-procedure-with-an-ods...
If the output is shown you can capture it with the method above.
Thanks so much. For some reason I was stuck on trying to get the MH odds ratio for each stratum - but this works.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.