Learn R Programming

BAMBI (version 2.3.5)

select_chains: Select chains from angmcmc objects

Description

Select chains from angmcmc objects

Usage

select_chains(object, chain.no, ...)

Value

Returns another angmcmc object with only selected chains passed through chain.no

Arguments

object

angular MCMC object.

chain.no

labels of chains to be retained in the final sample. If missing, all chains are used.

...

unused

Examples

Run this code
# illustration only - more iterations needed for convergence
fit.vmsin.20 <- fit_vmsinmix(tim8, ncomp = 3, n.iter =  20,
                             L = c(10, 12), chains_parallel = FALSE,
                             n.chains = 2)
fit.vmsin.20
fit.vmsin.20.1 <- select_chains(fit.vmsin.20, 1)
fit.vmsin.20.1

Run the code above in your browser using DataLab