Learn R Programming

BANOVA (version 1.2.1)

trace.plot: Function to plot the trace of parameters

Description

Function to plot the trace of all coefficients/parameters. The plots can be saved as a pdf file.

Usage

trace.plot(x, save = FALSE)

Arguments

x

the object from BANOVA.*

save

whether to save the trace plot as a pdf file, the default is FALSE

Examples

Run this code
# NOT RUN {
data(goalstudy)
# }
# NOT RUN {
library(rstan)
# or use BANOVA.run
res1 <- BANOVA.run(bid~progress*prodvar, model_name = "Normal", 
data = goalstudy, id = 'id', iter = 1000, thin = 1, chains = 2)
trace.plot(res1)
# }

Run the code above in your browser using DataLab