cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
Choose Language Hide Translation Bar
View Original Published Thread

Chi square easy question

Davidemu
Level I

Hello everyone, 
I'm new to jmp and I was wondering a simple thing. 
When I do the chi square test I want to compare a binary/dihcotomic variable in my Y (0 or 1) to another dihcotomic variable in the X that is 0 this time vs 1+2+3 together. (in this column I have 4 values from 0 to 3 (0,1,2,3) but I want to first analyze them in only two groups: 0 vs 1+2+3)
How can I unite 1 with 2 and 3 in only one group without editing my excel?
thank you so much

1 REPLY 1


Re: Chi square easy question

I would add a column formula to a new data column for the initial X. Copy and paste this expression in the formula editor for the new column.

 

If( :X == 0, 0, 1 )