dcomppareto {CompPareto}R Documentation

The probability density function (pdf) of a composite distribution with Pareto tail

Description

dcomppareto returns the density of a composite distribution with a Pareto upper tail at a point x, with a specified distribution at the lower tail.

Usage

dcomppareto(x, spec, alpha = 1, theta = 1, log = FALSE, ...)

Arguments

x

A scalar or vector of positive values at which the density needs to be evaluated

spec

The selection of the lower tail (head) distribution

alpha

The shape parameter of the Pareto distribution

theta

The scale parameter of Pareto, also serve as the location parameter of the composite model

log

logical; if TRUE, probability p are given as log(p)

...

The parameter of the lower tail (head) distribution

Value

an object of the same length of x as the density evaluated at x

Examples

x<-1:100
dcomppareto(x, "lnorm", 0.4, 1, meanlog = 1, sdlog = 0.8)
dcomppareto(x, "weibull", alpha = 1.5, theta = 1.5, shape = 2, scale = 2)

[Package CompPareto version 0.1.0 Index]