Learn R Programming

BNPdensity (version 2020.3.4)

as.mcmc.multNRMI: Convert the output of multMixNRMI into a coda mcmc object

Description

Convert the output of multMixNRMI into a coda mcmc object

Usage

# S3 method for multNRMI
as.mcmc(fitlist, thinning_to = 1000, ncores = parallel::detectCores())

Arguments

fitlist

Output of multMixNRMI.

thinning_to

Final length of the chain after thinning.

ncores

Specify the number of cores to use in the conversion

Value

a coda::mcmc object

Examples

Run this code
# NOT RUN {
data(acidity)
out <- multMixNRMI1(acidity, parallel = TRUE, Nit = 10, ncores = 2)
coda::as.mcmc(out, ncores = 2)
# }

Run the code above in your browser using DataLab