BookmarkSubscribeRSS Feed
amijacks
Calcite | Level 5


Hi all--

I am comparing dichotomous health-related variables (ie do you have diabetes? asthma? health insurance? etc) among three separate surveys. Two of the surveys are national and sponsored by the CDC: NHANES and NSCH.

The third survey is conducted by a local hospital system here in Texas.

I have run PROC SURVEYFREQ on all of my variables to obtain the proportions and std error.

Now that I have them, I need to compare between them in order to determine if they are statistically different.

I'm considering using PROC MULTTEST...but if I do that, then I would either

a) have to input the p-values (and how would I generate those?)

or

b) ask for the Procedure to run a test and the one that fits best i think would be Test Fisher Exact.

Then I can ask for the Bootstrap and Bonferroni corrections on the mult comparisons.

So, am I on the right track? or is there a completely different way for me to think about this??

Please advise!!

Thank you very much in advance,

--ami richards

1 REPLY 1
SteveDenham
Jade | Level 19

Hi Ami,

I don't think you can get Fisher's Exact Test out of PROC SURVEYFREQ.  However, for large surveys such as NHANES, using a Wald chi-square seems appropriate, as would a Rao-Scott.  If you do that, then adding an ODS statement should get the unadjusted p values into a dataset.  You may have to do a little bit of editing on that dataset, but you can input the p-values using the INPVALUES= option in the PROC MULTTEST statement.

Steve Denham

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1943 views
  • 0 likes
  • 2 in conversation