alignmentMatrix: aligned topics across chains

Description Usage Arguments Value

View source: R/alignmentMatrix.R

Description

aligned topics across chains

Usage

1
2
3
4
5
6
7
8
alignmentMatrix(
  theta,
  ps,
  K,
  iterUse = 1000,
  chain = 4,
  SampleID_name = "SampleID"
)

Arguments

theta

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

ps

phyloseq object.

K

integer. number of topics.

iterUse

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

chain

integer. number of chains used in MCMC.

SampleID_name

character. variable name that contains sample IDs.

Value

matrix. A matrix of topic assignment for each chain.


PratheepaJ/diffTop documentation built on Dec. 18, 2021, 7:48 a.m.