Learn R Programming

crandep (version 0.3.1)

dmix: Probability mass function (PMF) of discrete extreme value mixture distribution

Description

dmix returns the PMF at x for the discrete extreme value mixture distribution.

Usage

dmix(x, u, xi1, xi2, sig, geo, phi, log = FALSE)

Value

A numeric vector of the same length as x

Arguments

x

Vector of positive integers

u

Scalar, positive integer threshold

xi1

Scalar, shape parameter for values below or equal to u

xi2

Scalar, shape parameter of integer generalised Pareto distribution (IGPD), for values above u

sig

Scalar, scale parameter of IGPD, for values above u

geo

Boolean. If 'TRUE', the geometric distribution is used for the values below u. If 'FALSE', the discrete power law is used.

phi

Scalar, exceedance probability of u, between 0.0 and 1.0 exclusive

log

Boolean (default 'FALSE'), whether the PMF should be returned on the log scale.

See Also

Smix for the corresponding survival function, dupp for the probability mass function of the discrete power law.

Examples

Run this code
dmix(10:15, 12, 2.0, 0.5, 1.0, TRUE, 0.2)
dmix(10:15, 12, 2.0, 0.5, 1.0, FALSE, 0.2)
dmix(10:15, 12, 2.0, 0.5, 1.0, FALSE, 0.2, TRUE)

Run the code above in your browser using DataLab