Description Usage Arguments Value Author(s) References See Also Examples
Sample quadruples (beta,
sigma^2, phi, tau^2.rel) from the prior distribution of parameters specifying a Gaussian
random field.
Typically the prior is specified in the same manner as when calling krige.bayes
.
1 | sample.prior(n, kb.obj=NULL, prior=prior.control())
|
n |
number of samples |
kb.obj |
on object with an output of |
prior |
an call to |
A p+3 x 4 data-frame with a sample of the prior distribution of model parameters, where p is the length of the mean parameter beta.
Paulo J. Ribeiro Jr. paulojus@leg.ufpr.br,
Peter J. Diggle p.diggle@lancaster.ac.uk.
Further information on the package geoR can be found at:
http://www.leg.ufpr.br/geoR.
krige.bayes
and sample.posterior
.
1 2 3 4 | sample.prior(50,
prior=prior.control(beta.prior = "normal", beta = .5, beta.var.std=0.1,
sigmasq.prior="sc", sigmasq=1.2, df.sigmasq= 2,
phi.prior="rec", phi.discrete = seq(0,2, l=21)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.