Dear Stata users,
I need to compare the mean of two variables using a Mann-Whitney U tests. I usually use this test as : |ranksum [depvar], by ([grouping var])|. But the result I found gives me the p-value for a two-sided tests. In the present case, I need to get the p-value for a one-sided test. I do not find any option that can provide me the p-value for a one-sided test. I know that the ttest can give me the p-value for a one-sided test but assumptions for this test are not respected in my case so I need to use a Mann Whitney U test. Do you have any idea, option of the rank-sum test that can provide me the p-value for the one-sided test?
Many thanks
I need to compare the mean of two variables using a Mann-Whitney U tests. I usually use this test as : |ranksum [depvar], by ([grouping var])|. But the result I found gives me the p-value for a two-sided tests. In the present case, I need to get the p-value for a one-sided test. I do not find any option that can provide me the p-value for a one-sided test. I know that the ttest can give me the p-value for a one-sided test but assumptions for this test are not respected in my case so I need to use a Mann Whitney U test. Do you have any idea, option of the rank-sum test that can provide me the p-value for the one-sided test?
Many thanks
Comment