cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar

Order Within Grouping Variable

I apologize if this has been answered, but I can’t find quite the right answer in the discussions.  I have a grouping variable and I performed a t test with two values in the grouping variable.  The variable values are “Before” (n=6,437) and “After” (n=264).  JMP is showing me the t-test as (Before minus After), which results in a negative value.  I understand that I can just multiply by -1 to reverse the order of how the means are being subtracted from each other, but it gets confusing to explain.  How do I make the results be (After minus Before)?  I tried sorting the data, but that didn’t work.  These are not paired observations, so I don’t need a third column with the differences.  I tried looking at the column formula, but that’s for something else.  I come from SAS and what can be done there is use formatting to alter the order of things, but I don’t see anything that looks like that in JMP.  I would appreciate any guidance.

1 ACCEPTED SOLUTION

Accepted Solutions
Victor_G
Super User

Re: Order Within Grouping Variable

Hi @LawOfAardvark73,

Welcome in the Community !
The ordering of the level is by default done in alphanumeric order, which is why JMP gives you the calculated difference as Before minus After. To specify the ordering of the level, you can add the column property Value Order to specify that level "Before" comes before level "After".


Adding this column property should give you the test result directly in the right expected order.

Hope this answer will help you,

Victor GUILLER

"It is not unusual for a well-designed experiment to analyze itself" (Box, Hunter and Hunter)

View solution in original post

2 REPLIES 2
Victor_G
Super User

Re: Order Within Grouping Variable

Hi @LawOfAardvark73,

Welcome in the Community !
The ordering of the level is by default done in alphanumeric order, which is why JMP gives you the calculated difference as Before minus After. To specify the ordering of the level, you can add the column property Value Order to specify that level "Before" comes before level "After".


Adding this column property should give you the test result directly in the right expected order.

Hope this answer will help you,

Victor GUILLER

"It is not unusual for a well-designed experiment to analyze itself" (Box, Hunter and Hunter)

Re: Order Within Grouping Variable

Victor,

 

Thank you so much for your prompt response.  This was exactly what I was looking for.  Being new to JMP I still am figuring out how to find things.  Thanks again.

Recommended Articles