trace.plot: Function to plot the trace of parameters

Description Usage Arguments Examples

View source: R/trace.plot.R

Description

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

Usage

1

Arguments

x

the object from BANOVA.*

save

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(goalstudy)
res1 <- BANOVA.Normal(bid~1, ~progress*prodvar,  goalstudy, goalstudy$id, 
burnin = 1000, sample = 1000, thin = 2) 

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)

BANOVAapp/BANOVA_R documentation built on May 3, 2021, 6:30 a.m.