Learn R Programming

dstabledist (version 0.1.0)

ddstable: The discrete stable distribution: formulae for the probabilities (density)

Description

Computes the value of the formulae for the probabilities (density) of a discrete stable distribution DS(alpha,lambda), by combining the explicit and fast asymptotic formulae.

Usage

ddstable(x, alpha, lambda)

Value

Returns the value of the formulae for the probabilities (density) of DS(alpha,lambda).

Arguments

x

a vector of non-negative integer quantiles, k>=0

alpha

tail index parameter alpha in the interval= \((0, 1]\)

lambda

positive location parameter lambda>0

References

CHRISTOPH1998243dstabledist

Examples

Run this code
ddstable(c(0,1,2,100),1,lambda=1)#This is Poisson with lambda=1
dpois(c(0,1,2,100),1)#Checking with dpois
ddstable(c(0,1,2,100),0.5,lambda=1) # tail is heavier
ddstable(c(0,1,2,3,6,100),0.5,lambda=3) # change in location

Run the code above in your browser using DataLab