Last data update: 2014.03.03

R: Function to plot the trace of parameters
trace.plotR Documentation

Function to plot the trace of parameters

Description

Function to plot the trace of all level-2 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

data(goalstudy)

res1 <- BANOVA.Normal(bid~1, ~goalprogress*varmeans,  goalstudy, goalstudy$id, 
burnin = 1000, sample = 1000, thin = 2) 

trace.plot(res1)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(BANOVA)
Loading required package: rjags
Loading required package: coda
Linked to JAGS 4.1.0
Loaded modules: basemod,bugs
Loading required package: runjags
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/BANOVA/trace.plot.Rd_%03d_medium.png", width=480, height=480)
> ### Name: trace.plot
> ### Title: Function to plot the trace of parameters
> ### Aliases: trace.plot
> 
> ### ** Examples
> 
> data(goalstudy)
> 
> res1 <- BANOVA.Normal(bid~1, ~goalprogress*varmeans,  goalstudy, goalstudy$id, 
+ burnin = 1000, sample = 1000, thin = 2) 
Model initializing...
Compiling rjags model...
Calling the simulation using the rjags method...
Burning in the model for 1000 iterations...
Running the model for 2000 iterations...
Simulation complete
Finished running the simulation
Constructing ANOVA/ANCOVA tables...
Done...
> 
> trace.plot(res1)
> 
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>