spunif | R Documentation |
The function spunif
transforms a matrix or vector of data x
to the pseudo-uniform scale using a semiparametric transform. Data below the threshold
are transformed to pseudo-uniforms using a rank transform, while data above the threshold
are assumed to follow a generalized Pareto distribution. The parameters of the latter are
estimated using maximum likelihood if either scale = NULL
or shape = NULL
.
spunif(x, thresh, scale = NULL, shape = NULL)
x |
matrix or vector of data |
thresh |
vector of marginal thresholds |
scale |
vector of marginal scale parameters for the generalized Pareto |
shape |
vector of marginal shape parameters for the generalized Pareto |
a matrix or vector of the same dimension as x
, with pseudo-uniform observations
Leo Belzile
x <- rmev(1000, d = 3, param = 2, model = 'log')
thresh <- apply(x, 2, quantile, 0.95)
spunif(x, thresh)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.