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

Description Usage Arguments Details Value Examples

View source: R/base.R

Description

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

Usage

1
2
## 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

1
2
3
4
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)

Example output

Loading required package: coda

metropolis documentation built on Oct. 23, 2020, 7:42 p.m.