Align ASVs proportions in topics across chain.

betaAligned(beta, K, aligned, iterUse = 1000, chain = 4)

Arguments

beta

array. three dimensional array (iterations * topic * ASVs).

K

integer. number of topics.

aligned

matrix. A matrix of topic assignment for each chain. output of alignmentMatrix().

iterUse

integer. number of iterations used in each chain after subtracting warm-up samples.

chain

integer. number of chains used in MCMC.

Value

array. three dimensional array.