Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Chi-Square-Test for Homogeneity
From
"Rita Frühwald" <[email protected]>
To
[email protected]
Subject
st: Chi-Square-Test for Homogeneity
Date
Tue, 20 Nov 2012 13:26:14 +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!
Best,
Metoka
*
* 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/