BNPdensity (version 2023.3.8)

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(x, ..., thinning_to = 1000, ncores = parallel::detectCores())

Value

a coda::mcmc object

Arguments

x

Output of multMixNRMI.

...

Further arguments to be passed to specific methods

thinning_to

Final length of the chain after thinning.

ncores

Specify the number of cores to use in the conversion

Examples

Run this code
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