print.Btest | R Documentation |
Btest
Print an object of class Btest
## S3 method for class 'Btest'
print(x, ...)
x |
Object of class Btest |
... |
Additional parameters to be passed |
See Btest
for creating objects of the class Btest
.
## Not run:
#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
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.