Learn R Programming

Sim.DiffProc (version 2.5)

test_ks_dchisq: Kolmogorov-Smirnov Tests (Chi-Squared Distribution)

Description

Performs one sample Kolmogorov-Smirnov tests.

Usage

test_ks_dchisq(X, df)

Arguments

X
a numeric vector of data values.
df
degrees of freedom (non-negative, but can be non-integer).

Value

  • A list with class "htest" containing the following components:
  • statisticthe value of the test statistic.
  • p.valuethe p-value of the test.
  • alternativea character string describing the alternative hypothesis.
  • data.namea character string giving the name(s) of the data.

Details

see detail ks.test.

Examples

Run this code
X <- rchisq(1000,15)
 test_ks_dchisq(X, df=5)
 test_ks_dchisq(X, df=10)
 test_ks_dchisq(X, df=15)
 test_ks_dchisq(X, df=20)

Run the code above in your browser using DataLab