permutation test to compare two means using a by statement
May 28, 2020 1:27 PM(456 views)
Can anyone point me towards how to do a permutation test to compare two means using a by statement. I want to test for differences between seasonal means (fall vs spring) for multiple sites (1...20). Thank you!
I assume that you are able to follow the instructions from the Help example to set up the permutation data column for the response and the Oneway platform for the ANOVA. Prepare the Oneway platform for the next step. Click the red triangle next to Oneway and select Redo > Auto Recalc. Use a filter instead of subsetting. Select Rows > Data Filter. Add the grouping data column to the filter. Enable the Include mode. Select the first group and Oneway should update. Now run the permutation test as before. Select each group in turn, update Oneway, and run the permutation test. The permutation test results are stored in separate tables for each By group, of course.
You can try this suggestion first with the Help example by using the Gender variable in data filter. It worked for me.