plot.metropolis.samples {metropolis}R Documentation

Plot the output from the metropolis function

Description

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

Usage

## S3 method for class '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

Details

TBA

Value

None

Examples

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)

[Package metropolis version 0.1.8 Index]