MATLAB: How to computer the p value for one tail ranksum

MATLAB: How to computer the p value for one tail ranksum

p-value ranksum

I have a 2010 Matlab and I want to use the ranksum function. However this version only computes the two tail pvalue.
I have two vectors, i.e., X1 and X2. I want to know if the median of X1 is greater than X2 (significance level: 0.05).
Could you please help me how I can do this? Thanks

Best Answer

  • If your sample is large enough for it to give you the Z value, you can compute a one-tailed normal distribution probability on your own using that value.
  • Add a Comment

    Your email address will not be published. Required fields are marked *