rgpd: Random generation of the Generalized Pareto distribution...

Description Usage Arguments Value See Also Examples

Description

Random generation of the Generalized Pareto distribution (GPD)

Usage

1
rgpd(n, xi = 1/alpha, alpha = 1/xi, mu = 0, beta = 1)

Arguments

n

integer

xi

numeric, inverse of alpha

alpha

numeric, tail index

mu

numeric, lower bound, default is 0

beta

numeric, scaling paramater, default = 1

Value

generates n values of the Pareto 1 distribution at points x

See Also

dgpd, and pgpd

Examples

1
2
3
rgpd(10, xi=1/1.5, 1, 1)
# expected value of a GPD(1,1.5,0,1)
mean(rgpd(1e6,alpha=1.5,mu=0,beta=1))

freakonometrics/TopIncomes documentation built on July 7, 2019, 8:06 a.m.