twostep.mgp | R Documentation |
The algorithm estimates marginal parameters in a preliminary run, then fix the latter to the posterior median and samples from the dependence parameters in a second time.
twostep.mgp(dat, mthresh, thresh, lambdau = 1, model = c("br", "xstud",
"lgm"), coord, start, numiter = 40000L, burnin = 5000L, thin = 1L,
verbose = 100L, filename, censor = TRUE, keepburnin = TRUE,
geoaniso = TRUE, blockupsize = ncol(dat), transform = FALSE,
likt = c("mgp", "pois", "binom"), saveinterm = 500L, ...)
dat |
n by D matrix of observations |
mthresh |
vector of marginal thresholds under which data are censored |
thresh |
functional max threshold determining the risk region |
lambdau |
probability of exceedance of the threshold for censored observations |
model |
dependence model, either of |
coord |
matrix of coordinates, with longitude and latitude in the first two columns and additional covariates for the latent Gaussian model |
start |
named list with starting values for the parameters, with arguments:
If any of |
numiter |
number of iterations to be returned |
burnin |
number of initial parameters for adaptation and discarded values. |
thin |
thining parameter; only every |
verbose |
report current values via print every |
filename |
name of file for save. |
censor |
logical; should censored likelihood be used? Default to |
keepburnin |
logical; should initial runs during |
geoaniso |
logical; should geometric anisotropy be included? Default to |
blockupsize |
size of block for updates of the scale parameter; |
transform |
logical; should parameters be sampled on an unconstrained space if they are bounded. Default is |
likt |
string indicating the type of likelihood, with an additional contribution for the non-exceeding components: one of |
saveinterm |
integer indicating when to save results. Default to |
... |
Arguments passed on to
|
a list with res
containing the results of the chain
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.