Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Chi-Square-Test for Homogeneity


From   metoka2@gmx.de
To   statalist@hsphsun2.harvard.edu
Subject   st: Chi-Square-Test for Homogeneity
Date   Tue, 20 Nov 2012 12:47:10 +0100

Dear members,

I have 2 different samples. One from the previous year (2011) with about 500 observations. Another one from the current year (2012) with about 1500 observations. I included a binary variable in my data to represent whether the observation was collected in the previous or the current year. In both samples, I have a nominally scaled  varibale that  represents students' field of study (7 categories).

I want to test whether the distribution of this variable (representing the students' field of study) is the same in both samples (the sample from the previous and the sample from the current year). My advisor told me to do a chi sqared test to do so. I figured out that I need to run a chi-square-test for homogeneity.

Can anybody please tell me the command to run this test?

Thank you for your help!
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index