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-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 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
  • 1453 views
  • 0 likes
  • 2 in conversation