bayes.model.selection: Bayesian regression model selection using G priors

Description Usage Arguments Value Author(s) Examples

View source: R/bayes.model.selection.R

Description

Using Zellner's G priors, computes the log marginal density for all possible regression models

Usage

1
bayes.model.selection(y, X, c, constant=TRUE)

Arguments

y

vector of response values

X

matrix of covariates

c

parameter of the G prior

constant

logical variable indicating if a constant term is in the matrix X

Value

mod.prob

data frame specifying the model, the value of the log marginal density and the value of the posterior model probability

converge

logical vector indicating if the laplace algorithm converged for each model

Author(s)

Jim Albert

Examples

1
2
3
4

LearnBayes documentation built on May 30, 2017, 4:48 a.m.

Search within the LearnBayes package
Search all R packages, documentation and source code