Description Usage Arguments Value Examples
For a given set of covariates X
; parameters Eta
,
rho
, and err
; and document-specific time stamps tD
,
simulate a document-by-topic matrix. Additional structuring variables
(numbers of topics (k), documents (M), segments (S), and
covariates per segment (C)) are inferred from input objects.
1 | sim_TS_data(X, Eta, rho, tD, err = 0, seed = NULL)
|
X |
|
Eta |
|
rho |
Vector of integer-conformable time locations of changepoints or
|
tD |
Vector of integer-conformable times of the documents. Must be
of length M (as determined by |
err |
Additive error on the link-scale. Must be a non-negative
|
seed |
Input to |
A document-by-topic matrix
of probabilities (dim: M x k).
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.