Chi-square problem

#1
Hi! Help please! I have a table with variables "doctor_speciality" (cardiology, oncology, dermatology and etc.), "city" (different cities), and "smoker_status" (smoker, non-smoker). I need to compare frequency of cardiology-smokers from NY and from Texas using Chi-square. How I can do it? Or I need to use other test?
 

Karabiner

TS Contributor
#2
Seemingly, you need to create a variable "state" first. Then you can use the procedure select cases,
in order to select cases from NY and those from Texas, and in addition only those with speciality "cardiology".

With kind regards

Karabiner
 
Last edited:
#3
Hello everybody!
I have been spending a lot of time trying to realize a chi squared in spss.
The following picture shows the data.
1582995413686.png
I need to perform the χ2 test in SPSS in order to observe the association between Gender and SuperStrength.
However, everytime I try to get the chi squared, I unfortunately get this:

1582995596978.png
Thank you in advance for your time and help.
Best Regards!
 

Karabiner

TS Contributor
#4
If you want to explore an association between 2 categorial variables,
then you have to use the "crosstabs" procedure, which includes the
chi square test of association.

But, if you only have female cases and no male cases, you cannot explore
an association between gender and super strength.

You can tell from your results that in the female sample the respective
proportions of those with versus without super strength do not significantly
differ from 50% versus 50%.


With kind regards

Karabiner
 
Last edited: