powered by
Density function of Generalized Pareto Distribution
dgpd(x, loc = 0, scale = 1, shape = 0, log = FALSE)
[vector] Density of GPD at x
[vector] Vector of values
[vector] Location parameter
[vector] Scale parameter
[vector] Shape parameter
[bool] Return log of density if TRUE, default is FALSE
## Data loc = 1 scale = 0.5 shape = -0.2 x = base::seq( -5 , 5 , length = 1000 ) y = dgpd( x , loc = loc , scale = scale , shape = shape )
Run the code above in your browser using DataLab