Learn R Programming

bdynsys (version 1.3)

bayfacfig: Bayes Factors Plot

Description

bayfacfig plot the Bayes Factors to visualy display the selected and the overall best model. It requires the packages Hmisc and graphics.

Usage

bayfacfig(indnr, modelnr, BF, markmod)

Arguments

indnr
an integer number indicating number of indicators, to be included in the modeling procedure
modelnr
number of models for which Bayes factors were obtained, and are to be compared now in the plot
BF
double numbers giving the Bayes factors for the models, to be compared, stored in a vector.
markmod
the number of the model (index of the Bayes factor in the vector), which is the overall best.

Examples

Run this code
## Bayes Factor plot for five models with two indicators to be compared in the 
## bayesian fitting, with forth model being highlighted as the overall best model 
bayfacfig(2, 5, c(-5.4534, -5.3955, -5.235, -4.99948, -5.321), 4)

Run the code above in your browser using DataLab