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

SAS Innovate 2025: Call for 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!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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