print.Bvs: Print an object of class 'Bvs'

View source: R/Bvs.R

print.BvsR Documentation

Print an object of class Bvs

Description

Print an object of class Bvs. The ten most probable models (among the visited ones if the object was created with GibbsBvs) are shown jointly with their Bayes factors and an estimation of their posterior probability based on the estimation of the normalizing constant.

Usage

## S3 method for class 'Bvs'
print(x, ...)

Arguments

x

An object of class Bvs

...

Additional parameters to be passed

Author(s)

Gonzalo Garcia-Donato and Anabel Forte

Maintainer: <anabel.forte@uv.es>

See Also

See Bvs, GibbsBvs for creating objects of the class Bvs.

Examples


## Not run: 
#Analysis of Crime Data
#load data
data(UScrime)

#Default arguments are Robust prior for the regression parameters
#and constant prior over the model space
#Here we keep the 1000 most probable models a posteriori:
crime.Bvs<- Bvs(formula= y ~ ., data=UScrime, n.keep=1000)

#A look at the results:
print(crime.Bvs)

## End(Not run)


BayesVarSel documentation built on March 31, 2023, 9:17 p.m.