Learn R Programming

ordinalbayes (version 0.1.2)

plot.ordinalbayes: Trace Plot and/or Density Plot of MCMC Output.

Description

Trace Plot and/or Density Plot of MCMC Output.

Usage

# S3 method for ordinalbayes
plot(x, trace = TRUE, density = FALSE, ...)

Value

No returned value, called for side effects

Arguments

x

an ordinalBayes object.

trace

a logical value. If TRUE, trace plots are produced for each variable in the chain.

density

a logical value. If TRUE, density plots are produced for each variable in the chain.

...

other arguments.

Examples

Run this code
# \donttest{
data("cesc")
fit<-ordinalbayes(Stage~1, data=cesc, x=cesc[,5:45],
     model="regressvi",gamma.ind="fixed",
     pi.fixed=0.99, adaptSteps=1000, burnInSteps=1000, nChains=2,
     numSavedSteps=2000, thinSteps=2, seed=26)
 plot(fit)
# }

Run the code above in your browser using DataLab