Learn R Programming

EntropyMCMC (version 1.0.4)

DrawInit: Random draws for initialization

Description

Utility function for the package EntropyMCMC, for generating random starting positions for the parallel Markov chains, used by, e.g., MCMCcopies or EntropyParallel.

Usage

DrawInit(nmc, d, initpdf="rnorm", ...)

Arguments

nmc

Number of parallel chains = initial points.

d

Space dimension.

initpdf

Random generator. Generators currently implemented are: "rnorm" as the Normal distribution and "runif" as the uniform distribution.

...

Parameters passed to initpdf

Value

DrawInit returns a matrix of dimension (nmc,d) where each row is a \(d\)-dimensional point.

See Also

MCMCcopies and MCMCcopies.mc for iid MCMC simulations, EntropyParallel and EntropyParallel.cl for simultaneous simulation and entropy estimation.

Examples

Run this code
# NOT RUN {
Ptheta0 <- DrawInit(10, 5, initpdf="rnorm", mean=0, sd=5)
# }

Run the code above in your browser using DataLab