impute | R Documentation |
This function returns a matrix of data on the data scale (if map == TRUE
) or else unit Pareto observations.
Data that fall below a marginal threshold are censored and imputed according to the conditional distribution.
For riskr == "sum"
, this require an accept-reject scheme to ensure the points with the simulated components
still lies in the risk region defined by the marginal and dependence parameters.
impute(dat, thresh, mthresh, loc = 1, scale = 1, shape = 1,
lambdau = 1, riskr = c("max", "sum"), par, map = FALSE, ...)
dat |
matrix of observations |
thresh |
functional threshold for the maximum |
mthresh |
vector of individuals thresholds under which observations are censored |
loc |
vector of location parameter for the marginal generalized Pareto distribution |
scale |
vector of scale parameter for the marginal generalized Pareto distribution |
shape |
vector of shape parameter for the marginal generalized Pareto distribution |
lambdau |
vector of marginal rate of marginal threshold exceedance. |
riskr |
string giving the risk region, either |
par |
list of parameters: |
map |
logical; should data be returned on the unit Pareto scale? Default to |
... |
additional arguments (see Details) |
a matrix of observations with imputed values in place of censored components.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.