fitted.values
from a list of INLA objectsThis functions performs a weighted average of the component
fitted.values
from a list of INLA objects.
BMArho(models, rho, logrhoprior = rep(1, length(rho)))
List of INLA models fitted for different values of rho
Vector fo values of rho
used to compute the list in models
.
Log-prior density for each value of rho
.
Vector of averaged fitted values.
The different fitted.values
are weighted using the values of the
marginal likelihood of the fitted models and the prior of parameter
rho
. rho
is a parameter that is fixed when computing
models
and that have a log-prior density defined in pogrhoprior
.
Roger S. Bivand, Virgilio G<U+000ED97A>-Rubio, H<e5>vard Rue (2014). Approximate Bayesian inference for spatial econometrics models. Spatial Statistics, Volume 9, 146-165.
Roger S. Bivand, Virgilio G<U+000ED97A>-Rubio, H<e5>vard Rue (2015). Spatial Data Analysis with R-INLA with Some Extensions. Journal of Statistical Software, 63(20), 1-31. URL http://www.jstatsoft.org/v63/i20/.