rgpd {ROOPSD} | R Documentation |
rgpd
Description
Random value generator of Generalized Pareto distribution
Usage
rgpd(n = 1, loc = 0, scale = 1, shape = 0)
Arguments
n |
[int] Numbers of values generated |
loc |
[vector] Location parameter |
scale |
[vector] Scale parameter |
shape |
[vector] Shape parameter |
Value
[vector] Random value following a loc + GPD(scale,shape)
Examples
## Data
loc = 1
scale = 0.5
shape = -0.2
gev = rgpd( 100 , loc = loc , scale = scale , shape = shape )
[Package ROOPSD version 0.3.9 Index]