dpareto: Probability density of Pareto distributions

Description Usage Arguments Value Examples

View source: R/gsea.R

Description

Gives NA on values below the threshold

Usage

1
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

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

vulcan documentation built on Nov. 8, 2020, 8:15 p.m.