Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

Re: st: chi square test for 2 independent variab lesþ

From   Richard Williams <>
To, statalist2 <>
Subject   Re: st: chi square test for 2 independent variab lesþ
Date   Thu, 28 Jul 2011 16:47:50 -0500

At 03:30 PM 7/28/2011, Jonathan Grondin wrote:
Hi there,

I am trying to run a -chi2- chi-square test for two independent samples.

I ran a test on two groups of students, groupA having more information than groupB. I would like to use the chi-square test in order to show that the differences in the answers by group1 compared to those of group2 are either due to randomness or either by the fact one group answered differently based on the fact the had more information starting with.

Each question has a choice of 5 possible answers (from 1 to 5) and I have generated one single variable for each question. e.g. "Q1" "Q2" "Q3"

I tried dividing each question into 2 new variables by their respective groups. e.g.: Q1A & Q1B But when I -tab Q1A Q1B, chi2- I get no observation, maybe since students are either in group A or in group B but can't be in both

Any idea how I could solve this problem ?

Shouldn't the variables be Q1 and Group?

Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME:   (574)289-5227
EMAIL:  Richard.A.Williams.5@ND.Edu

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index