sim_marg_var | R Documentation |
Estimate marginal variances of a (I)GMRF prior defined in terms of a sparse precision matrix and possibly a set of equality constraints. The marginal variances might be used to rescale the precision matrix such that a default prior for a corresponding variance component is more appropriate.
sim_marg_var(
D,
Q = NULL,
R = NULL,
r = NULL,
eps1 = 1e-09,
eps2 = 1e-09,
nSim = 100L
)
D |
factor of precision matrix Q such that Q=D'D. |
Q |
precision matrix. |
R |
equality restriction matrix. |
r |
rhs vector for equality constraints |
eps1 |
passed to |
eps2 |
passed to |
nSim |
number of Monte Carlo samples used to estimate the marginal variances. |
A vector of Monte Carlo estimates of the marginal variances.
S.H. Sorbye and H. Rue (2014). Scaling intrinsic Gaussian Markov random field priors in spatial modelling. Spatial Statistics, 8, 39-51.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.