# Perform signed rank test where there are duplicates in data?

How do you perform a rank test when there are duplicates in the data?

that is, we have a dataset with numbers $$1,1,1,1,3,3,3,3,4,4,4,4.$$ and another dataset also with duplicates.... Is the sum of the ranks for the first data set, $$1+1+1+1+2+2+2+2+3+3+3+3?$$