Given the output of the MCMC, return a number of samples for a new site.

Share:

Description

This takes the object returned from spatial.gev.bma and new information for a given site and returns a large sample of values from the posterior predictive distribution for that site.

Usage

1
gev.impute(R, X.drop, S.drop, burn = NULL, n.each = NULL)

Arguments

R

This is the object returned from spatial.gev.bma

X.drop

This is the vector of covariates for the site that has been left out.

S.drop

This is the 2 dimensional vector of locations for this site

burn

Optional number of repetitions to drop from R as burn in. Defaults to 10 percent.

n.each

Optional number of samples from each repetition under consideration. Defaults to a number such that around 1 million samples are returned.

Value

Returns a large number of sample from the posterior predictive distribution.

Author(s)

Alex Lenkoski <alex@nr.no>

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.