Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Home
- /
- Programming
- /
- SAS Procedures
- /
- Re: Odds ratios by stratum in Proc freq

Options

- RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

🔒 This topic is **solved** and **locked**.
Need further help from the community? Please
sign in and ask a **new** question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Posted 10-07-2019 04:45 PM
(2336 views)

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

1 ACCEPTED SOLUTION

7 REPLIES 7

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

@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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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 ;

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Thank you for this link! My problem is the OR is not there to begin with

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

I think odds ratio are only done for 2x2 tables. You may need to use PROC LOGISTIC to get the odds ratio.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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!

What is Bayesian Analysis?

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.