Learn R Programming

metropolis (version 0.1.8)

plot.metropolis.samples: Plot the output from the metropolis function

Description

This function allows you to summarize output from the metropolis function.

Usage

# S3 method for metropolis.samples
plot(x, keepburn = FALSE, parms = NULL, ...)

Arguments

x

the outputted object from the "metropolis_glm" function

keepburn

keep the burnin iterations in calculations (if adapt=TRUE, keepburn=TRUE

parms

names of parameters to plot (plots the first by default, if TRUE, plots all)

...

other arguments to plot

Value

None

Details

TBA

Examples

Run this code
# NOT RUN {
dat = data.frame(y = rbinom(100, 1, 0.5), x1=runif(100), x2 = runif(100))
res = metropolis_glm(y ~ x1 + x2, data=dat, family=binomial(), iter=10000, burnin=3000, 
adapt=TRUE, guided=TRUE, block=FALSE)
plot(res)
# }

Run the code above in your browser using DataLab