BookmarkSubscribeRSS Feed
Addison
Fluorite | Level 6

Hello, 

I have a question about using proc surveyfreq procedure to examin the relationship between two categorical variables.

 

Currently I use chisq to perform chi-square statics but my colleague use chisq1 to performa chi-square statics.

 

The same dataset and same variables, when I run the proc surveyfreq procefure with chi-sq and obtained p value 0.0503. My colleague will get a different p value (0.0463) by using chisq1 to run chi-square statistics.

 

I know chisq1 is requested Rao-Scott modified chi-square test. My question is how do I know which chi-square statictics I should apply?

Does anyone know what's difference between chisq and chisq1? 

2 REPLIES 2
Rick_SAS
SAS Super FREQ

I think the PROC SURVEYFREQ doc provides these answers if you know where to look.:

1) Go to the SAS documentation

2) Click the procedure you want information about. In this case, PROC SURVEYFREQ.

3) Look under the "details" tab. This is where statistical formulas are usually presented and discussed.  In this case, select "Statistical Computations."

4. You will see many sections that explain how the SURVEYFREQ procedure works. Select "Rao-Scott Chi-Square Test."

 

The doc does not include the string 'chisq1'.  However, it does discuss the first-order Rao-Scott chi-square statistics for the goodness-of-fit test.  It includes links to the syntax section (how do you get the test?), links to the literature (who invented the test? When?) and links to other sections of the doc.

 

The doc tells me that CHISQ1 option is very old and the most recent version of SAS no longer uses that name. The option is now called the CHISQ(MODIFIED) option. The syntax section for the CHISQ option describes the difference between the first-order Rao-Scott test and the modified test.

ballardw
Super User

From the online documentation:

 

Two forms of the design correction are available for the Rao-Scott tests. One form of the design correction uses the proportion estimates, and you request the corresponding Rao-Scott chi-square test with the CHISQ option. The other form of the design correction uses the null hypothesis proportions. You request this test, called the Rao-Scott modified chi-square test, with the CHISQ1 option.

 

 

There is much more detail in the online help if you want to work through the algebra.

sas-innovate-2024.png

Today is the last day to save with the early bird rate! Register today for just $695 - $100 off the standard rate.

 

Plus, pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 1558 views
  • 0 likes
  • 3 in conversation