dot-clean_chain: Tidy C++ outputs before writing to disk.

.clean_chainR Documentation

Tidy C++ outputs before writing to disk.

Description

1) Convert each parameter to matrix (n_iterations x n_indices) 2) Add appropriate colnames 3) Thin evenly (for enhance)

Usage

.clean_chain(out, method = c("cluster", "enhance"), thin = 100)

Arguments

out

List returned by cluster() or deconvolve().

method

Whether the output came from clustering or enhancement. (Different params are included in each.)

thin

Thinning rate. Some enhanced parameters are thinned within C++ loop, others (mu and Ychange) need to be thinned afterwards.

Value

List with standardized parameters


edward130603/BayesSpace documentation built on May 11, 2023, 6:13 a.m.