Description Usage Arguments Value Examples
View source: R/function_genExPrior.R
genExPrior
generates priors from a set of data from multiple sites
1 2 3 | genExPrior(exdata, theta, niter = 10^5, range_alpha = NULL,
seed = NULL, hierarchicalSigma = F, spatialCoordinates = F,
verbose = F)
|
exdata |
a dataframe containing external data to assimilate, with fields val and site_id (see example) |
theta |
a vector of numerical values of informative prior evaluation points |
niter |
(optional) an integer for the number of samples to use in the MCMC |
range_alpha |
(optional) a vector of two values corresponding to the lower and the upper bounds of the uniform distribution for alpha |
seed |
(optional) a value for the seed to make calls of genExPrior deterministic |
hierarchicalSigma |
(optional) a boolean specifying whether the site-specific variance is defined hierarchically by an inverse-gamma distribution (T) or by a prior (F) |
spatialCoordinates |
(optional) a boolean specifying whether spatial coordinates are provided as covariates to numerical external data. If T, the spatial autocorrelation of external data is accounted for, assuming that the spatial covariance has an exponential form. |
verbose |
(optional) boolean indicating whether R should print information from the progress |
the pdf at values corresponding to theta
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.