dpareto {vulcan}R Documentation

Probability density of Pareto distributions

Description

Gives NA on values below the threshold

Usage

dpareto(x, threshold = 1, exponent, log = FALSE)

Arguments

x

Data vector of log probability densities

threshold

numeric value to define the start of the tail

exponent

the exponent obtained from the pareto.fit function

log

logical, should the values be log-transformed?

Value

Vector of (log) probability densities

Examples

set.seed(1)
x<-abs(rnorm(1000))
n<-length(x)
exponent<-1+n/sum(log(x))
dp<-dpareto(x,exponent=exponent)
plot(dp)

[Package vulcan version 1.16.0 Index]