turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- SAS Programming
- /
- SAS Procedures
- /
- Chi Square

Topic Options

- RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

08-09-2016 07:44 AM

Hello

I intend to use PROC MEANS in order to get details (average, median, std, max, min) on 3 seperate groups. Is there any possibility

to check the difference between the groups using chi-square in this procedure? because I did not find it

Thanks a lot!

Accepted Solutions

Solution

08-09-2016
09:40 AM

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to yael

08-09-2016 09:11 AM

All Replies

Solution

08-09-2016
09:40 AM

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to yael

08-09-2016 09:11 AM

Chi square is via proc freq

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to yael

08-09-2016 11:17 AM

The chi-square test in PROC FREQ tests whether the proportions (or counts) in each cell of a one-way analysis of a **discrete** variable are significantly different. Is that your situation?

For a continuouis response variable, analysts often use PROC GLM to compare mean values across three or more groups. The GLM output includes an OverallAnova table that shows the result of an F test which indicates whether the means of the groups are significantly different.

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to Rick_SAS

08-10-2016 01:55 AM

Hello @Rick_SAS

Thanks for your reply and also for the explanation

I actually need the chi-square test to test whether the proportions in a **discrete** variable are significantly different. But the information about the PROC GLM is important to me for my next step.

Thanks a lot!

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to yael

08-11-2016 01:59 AM

Hello @Rick_SAS

Following our correspondence above I would like to ask for your help,

I am trying to see if there is any difference between 3 groups of **continouse variable**. So I used PROC FREQ with Chi Square and got

a long list divided by 3 groups (it probably took every value in this list and indicated the frequency values). But more important is that I got the following message:

WARNING: 100% of the cells have expected counts less

than 5. Chi-Square may not be a valid test.

Effective Sample Size = 3986

Frequency Missing = 828

WARNING: 17% of the data are missing.

I checked and there is NO MISSING DATA but there is missing data if we divide it to 3 groups (attached an example)

First, I hope my description with my broken English is clear, BUT how can I solve it?

Thanks a lot!!!

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to yael

08-11-2016 05:27 AM

As I said in my previous message, PROC FREQ is for **discrete** response, typically counts. If you have a continuous response, you need to use a different procedure such as GLM.

- Mark as New
- Bookmark
- Subscribe
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to Rick_SAS

08-11-2016 06:52 AM

Sorry! You are right, I forgot it