Equivalence Paired Samples T-Test
Hi all,
I tried to do a Equivalence Paired Samples T-Test with 2 continuous variables. I added them both as a pair, but I got an error: unused argument (pairs = list(list(i1 = p1, i2 = p2))).
Changing the settings does not help
Can someone help me with this error?
Comments
Hello,
I tried this module and had the same issue. It seems to be a bug because the "pairs = list(list(i1 = p1, i2 = p2))" argument should be solved once you have selected the pair of variables to be compared (at least that's what it suggests the R syntax in the paired samples t-test module).
You can perform this test with R using the TOSTER package as mentioned in the JASP's help tab for that module. They also provided the Lakens reference where the authors provided an example (independent t-test though) https://journals.sagepub.com/doi/abs/10.1177/2515245918770963. But the code is relatively simple to solve.
Hope it helps.
Alejandro.
Another option to get the results in JASP is:
Create a new variable with the differences between the two variables (Variable 1 - Variable 2) in JASP.
Use the One Sample T-Test in the T-Tests module.
Move the new calculated variable with the differences into the "Variables" box.
Select the student test (by default). You can use the "Test value" box to test the upper and lower limits, but you can do it one at a time (set the value and the appropriate hypothesis). For example, let's say your lower and upper levels are -5 and 5. We first enter -5 in the "Test value" box and select the "> Test value" option in the alternative hypothesis. We do something similar for the upper level: we enter 5 in the "Test value" box and select the "< Test value" option in the alternative hypothesis. You would have the same t-statistics and p-values as if you had run the equivalence test in R.
Unfortunately, you would not get the fancy graph with this procedure.
I hope it helps.
Alejandro.