BMArho: Compute BMA of 'fitted.values' from a list of INLA objects

Description Usage Arguments Details Value Author(s) References See Also

View source: R/BMArho.R

Description

This functions performs a weighted average of the component fitted.values from a list of INLA objects.

Usage

1
BMArho(models, rho, logrhoprior = rep(1, length(rho)))

Arguments

models

List of INLA models fitted for different values of rho

rho

Vector fo values of rho used to compute the list in models.

logrhoprior

Log-prior density for each value of rho.

Details

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.

Value

Vector of averaged fitted values.

Author(s)

Virgilio G<f3>mez-Rubio <virgilio.gomez@uclm.es>

References

Roger S. Bivand, Virgilio G<f3>mez-Rubio, H<e5>vard Rue (2014). Approximate Bayesian inference for spatial econometrics models. Spatial Statistics, Volume 9, 146-165.

Roger S. Bivand, Virgilio G<f3>mez-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/.

See Also

INLABMA


INLABMA documentation built on May 2, 2019, 4:42 p.m.

Related to BMArho in INLABMA...