Learn R Programming

BayesVarSel (version 2.4.5)

print.Btest: Print an object of class Btest

Description

Print an object of class Btest

Usage

# S3 method for Btest
print(x, ...)

Arguments

x

Object of class Btest

...

Additional parameters to be passed

See Also

See Btest for creating objects of the class Btest.

Examples

Run this code
 if (FALSE) {
#Analysis of Crime Data
#load data
data(UScrime)
#Model selection among the following models: (note model1 is nested in all the others)
model1<- y ~ 1 + Prob
model2<- y ~ 1 + Prob + Time
model3<- y ~ 1 + Prob + Po1 + Po2
model4<- y ~ 1 + Prob + So
model5<- y ~ .

#Equal prior probabilities for models:
crime.BF<- Btest(models=list(basemodel=model1,
	ProbTimemodel=model2, ProbPolmodel=model3,
	ProbSomodel=model4, fullmodel=model5), data=UScrime)
	crime.BF
	}

Run the code above in your browser using DataLab