chi2test_m Module

卡方检验


Uses


Contents


Interfaces

public interface chi2test

卡方检验

  • private impure subroutine chi2test_1(x, pval, chisq, dof)

    卡方检验 1

    Arguments

    TypeIntentOptionalAttributesName
    real(kind=wp), intent(in) :: x(:)
    real(kind=wp), intent(out) :: pval

    p-value

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

    卡方值

    integer, intent(out) :: dof

    自由度

  • private impure subroutine chi2test_2(x, pval, chisq, dof)

    卡方检验 2

    Arguments

    TypeIntentOptionalAttributesName
    real(kind=wp), intent(in) :: x(:,:)
    real(kind=wp), intent(out) :: pval

    p-value

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

    卡方值

    integer, intent(out) :: dof

    自由度

public interface t_test

T 检验

  • private impure subroutine welch_t_test(x, y, pval, t, dof)

    Welch T 检验

    Arguments

    TypeIntentOptionalAttributesName
    real(kind=wp), intent(in) :: x(:)
    real(kind=wp), intent(in) :: y(:)
    real(kind=wp), intent(out) :: pval

    p-value

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

    T 值

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

    自由度

  • private impure subroutine student_t_test(x, mean, pval, t, dof)

    单样本 Student T 检验

    Arguments

    TypeIntentOptionalAttributesName
    real(kind=wp), intent(in) :: x(:)
    real(kind=wp), intent(in) :: mean

    均值

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

    p-value

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

    T 值

    integer, intent(out) :: dof

    自由度