BayesInfo: Input parameters about MCMC sampler

Description Usage Arguments Value Examples

View source: R/BayesInfo.R

Description

Input parameters about MCMC sampler

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
BayesInfo(
  MCMCpackage = "rjags",
  prior = NULL,
  init.list = NULL,
  n.sample = 10000,
  n.burnin = 2000,
  n.adapt = 2000,
  n.thin = 1,
  n.chain = 2
)

Arguments

MCMCpackage

A string indicating which packages will be used. Currently, tested for rjags.

prior

A named list of vectors. First element, 'mean' a vector of mean values of logα and β. See details.

init.list

A named list. See jags.model for more information.

n.sample

A integer or numeric value. The number of MCMC samples retains. See jags.model for more information.

n.burnin

A integer or numeric value. The number of MCMC samples burned. See jags.model for more information.

n.adapt

A integer or numeric value. See jags.model for more information.

n.thin

A integer or numeric value. See jags.model for more information.

n.chain

A integer or numeric value. See jags.model for more information.

Value

A named list

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
  Bayes.Info <- BayesInfo(MCMCpackage = "rjags",
                          prior = list(mean = list(c(-1.7346, 0)),
                                       std = list(c(2, 1)),
                                       corr = list(0)),
                          init.list = list(list(paras1 = c(-3, 0), .RNG.seed = 1, .RNG.name="base::Wichmann-Hill"),
                                           list(paras1 = c(-3, 0), .RNG.seed = 2, .RNG.name="base::Wichmann-Hill")),
                          n.sample = 10000,
                          n.burn = 2000,
                          n.adapt = 1000,
                          n.chain = 2,
                          n.thin = 1)

## End(Not run)

CChen89/demodel documentation built on Dec. 17, 2021, 12:52 p.m.