Conduct a Chi Square test using only specific levels

General help and assistance with jamovi. Bug reports can be made at our issues page: https://github.com/jamovi/jamovi/issues . (If you're unsure feel free to discuss it here)
Post Reply
Philine
Posts: 3
Joined: Tue Feb 08, 2022 3:00 pm

Conduct a Chi Square test using only specific levels

Post by Philine »

Hello,

I have a ordinal varible with three levels and a nominal variable. I would like to conduct a Chi Square test using the nominal variable and diferent combinations of the levels of the ordinal variable. Lets say the ordinal variable has the levels a, b and c. The nominal varible has the levels e and f. So I want to conduct three different Chi Square tests of indepence:

1. a,b with e,f
2. a,c with e,f
3. b,c with e,f

Is that possible? Hope for help soon!
User avatar
MAgojam
Posts: 425
Joined: Thu Jun 08, 2017 2:33 pm
Location: Parma (Italy)

Re: Conduct a Chi Square test using only specific levels

Post by MAgojam »

Hey Lucy,
if you want to do this you will have your own reason.

To do one thing on the fly, if you don't need to fix the output for each analysis, you can do it using the filter on your variable with three levels.
I call it VAR_abc and I want to exclude the level 'a', in Filter 1 it will be:
VAR_abc != 'a'
this excludes from your analysis all cases/rows that have 'a' in the variable VAR_abc.
So you will only use the 'b' and 'c' levels for your Chi2.
Then replace in the filter 'a' with 'b' or 'c' and the table will update for the changed levels.

Cheers,
Maurizio
Post Reply