Hello,
I've tried using the signrank function with before/after data with equal before and after values. I understand it is necessary to exclude pairs that are equal (x2i - x1i = 0) but the function doesn't do that. I need to add an if statement to the function to exclude those cases (I'm using the dataset from the manual which I modifiy to have equal paired values):
gen delta=MPG1-MPG2
signrank MPG1= MPG2 if delta!=0
This gives me the correct total sum values and the correct p value whereas if I don't add the if statement, the total sum values are those I find if I rank equal pairs (by hand or using an online calculator).
Maybe there is something I don't understand. Has anyone had the same problem? What is the use of including paired equal values (statistical significance?)
M. CATALA
I've tried using the signrank function with before/after data with equal before and after values. I understand it is necessary to exclude pairs that are equal (x2i - x1i = 0) but the function doesn't do that. I need to add an if statement to the function to exclude those cases (I'm using the dataset from the manual which I modifiy to have equal paired values):
gen delta=MPG1-MPG2
signrank MPG1= MPG2 if delta!=0
This gives me the correct total sum values and the correct p value whereas if I don't add the if statement, the total sum values are those I find if I rank equal pairs (by hand or using an online calculator).
Maybe there is something I don't understand. Has anyone had the same problem? What is the use of including paired equal values (statistical significance?)
M. CATALA
Comment