Description Usage Arguments Examples
Function to plot the trace of all coefficients/parameters. The plots can be saved as a pdf file.
1 | trace.plot(x, save = FALSE)
|
x |
the object from BANOVA.* |
save |
whether to save the trace plot as a pdf file, the default is FALSE |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.