I have two datasets, each of which consists of a number of (x,y) pairs. Both have a similar shape when y is plotted vs x, but they are shifted along the x-axis with respect to each other. I would like to find the offset in x required to make the two datasets overlap (see attached images).
Is there an elegant way to do this in JMP? I could write a loop that shifts one dataset by small increments and calculate the xi^2 between the two for each iteration to find which offset gives the best match, but I was wondering if there was a smarter way of doing it.