fsml_signedrank_1sample Interface

public interface fsml_signedrank_1sample

The 1-sample Wilcoxon signed rank test is a non-parametric test that determines if data comes from a symmetric population with centre . It can be regarded as a non-parametric version of the 1-sample t-test.

Hypotheses:

If the data consists of independent and similarly distributed samples from distribution , the null hypothesis can be expressed as:

is symmetric around .

The default alternative hypothesis is two-sided and also be set explicitly (h1 = "two"). It can be expressed as:

is symmetric around

If the alternative hypothesis is set to "greater than" (h1 = "gt"), it is:

is symmetric around

If the alternative hypothesis is set to "less than" (h1 = "lt"), it is:

is symmetric around

Procedure:

The test statistic is the smaller of the sum of positive and negative signed ranks:

The procedure takes into consideration tied ranks.

Calls

interface~~fsml_signedrank_1sample~~CallsGraph interface~fsml_signedrank_1sample fsml_signedrank_1sample proc~s_tst_signedrank_1s s_tst_signedrank_1s interface~fsml_signedrank_1sample->proc~s_tst_signedrank_1s proc~s_err_print s_err_print proc~s_tst_signedrank_1s->proc~s_err_print proc~s_tst_signedrank_1s_core s_tst_signedrank_1s_core proc~s_tst_signedrank_1s->proc~s_tst_signedrank_1s_core proc~f_utl_r2c f_utl_r2c proc~s_err_print->proc~f_utl_r2c proc~f_dst_norm_cdf_core f_dst_norm_cdf_core proc~s_tst_signedrank_1s_core->proc~f_dst_norm_cdf_core proc~s_utl_rank s_utl_rank proc~s_tst_signedrank_1s_core->proc~s_utl_rank

Module Procedures

public impure subroutine s_tst_signedrank_1s(x, mu0, w, p, h1)

Impure wrapper procedure for s_tst_signedrank_1s_core.

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: x(:)

x vector (samples)

real(kind=wp), intent(in) :: mu0

population mean (null hypothesis expected value)

real(kind=wp), intent(out) :: w

W statistic (sum of signed ranks)

real(kind=wp), intent(out) :: p

p-value

character(len=*), intent(in), optional :: h1

: "two" (default), "lt", "gt"