Learn R Programming

Sim.DiffProc (version 2.5)

test_ks_dbeta: Kolmogorov-Smirnov Tests (Beta Distribution)

Description

Performs one sample Kolmogorov-Smirnov tests.

Usage

test_ks_dbeta(X, shape1, shape2)

Arguments

X
a numeric vector of data values.
shape1
positive parameters of the Beta distribution.
shape2
positive parameters of the Beta distribution.

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 <- rbeta(1000,1,1)
 test_ks_dbeta(X, shape1=1, shape2=1)
 test_ks_dbeta(X, shape1=1, shape2=2)

Run the code above in your browser using DataLab