BookmarkSubscribeRSS Feed
darb
Calcite | Level 5

Looking for general information about 1-sided CMH tests. Also if anyone has any code with regards to this test that would be helpful.

 

can use variables strata*treatment*outcome.

2 REPLIES 2
SAS_Rob
SAS Employee

Each of the three tests that Proc FREQ reports has a very specific alternate hypothesis that is inherently two-sided.  While I suppose the Row Means score differ and the Correlation statistic could have a one-sided alternative, I have never seen these defined anywhere.  In any regard, there is no way in SAS to get them.

Rick_SAS
SAS Super FREQ

Although a one-sided CMH test isn't built-in to PROC FREQ, you can 

1. Program the test yourself if you know the distribution of the test statistic

2. Use Monte Carlo simulation to estimate the one-sided p-value, provided that you can sample from the null hypothesis.

 

For an example of simulating a test for a contingency table, see

"Monte Carlo simulation for contingency tables in SAS."

The article links to other articles that describe how to simulate tables that are subject to various assumptions, such as fixed N or fixed marginal frequencies.

sas-innovate-2024.png

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.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 3322 views
  • 0 likes
  • 3 in conversation