Learn R Programming

crandep (version 0.3.1)

Smix: Survival function of discrete extreme value mixture distribution

Description

Smix returns the survival function at x for the discrete extreme value mixture distribution.

Usage

Smix(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 survival function should be returned on the log scale.

See Also

dmix for the corresponding probability mass function, Supp for the survival function of the discrete power law.

Examples

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

Run the code above in your browser using DataLab