Learn R Programming

Sim.DiffProc (version 2.5)

test_ks_dgamma: Kolmogorov-Smirnov Tests (Gamma Distribution)

Description

Performs one sample Kolmogorov-Smirnov tests.

Usage

test_ks_dgamma(X, shape, rate)

Arguments

X
a numeric vector of data values.
shape
shape parameters. Must be positive, scale strictly.
rate
an alternative way to specify the scale.

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 <- rgamma(1000,1,6)
 test_ks_dgamma(X, shape=1, rate=6)
 test_ks_dexp(X, lambda=6)
 test_ks_dweibull(X, shape=1, scale=(1/6))

Run the code above in your browser using DataLab