Learn R Programming

mcmcsae (version 0.6.0)

get_draw: Extract a list of parameter values for a single draw

Description

Extract a list of parameter values for a single draw

Usage

get_draw(object, iter, chain)

Arguments

object

an object of class draws.

iter

iteration number.

chain

chain number.

Value

A list with all parameter values of draw iter from chain chain.

Examples

Run this code
# NOT RUN {
ex <- mcmcsae_example(n=50)
sampler <- create_sampler(ex$model, data=ex$dat)
sim <- MCMCsim(sampler, burnin=100, n.iter=300, thin=2, n.chain=4, store.all=TRUE)
get_draw(sim, iter=20, chain=3)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab