generateMultinomialLDA {Rlda} | R Documentation |
Simulates a Multinomial LDA.
## S3 method for class 'rlda' generateMultinomialLDA(seed0, community, variables, observations, totalElements, beta, gamma, ...)
seed0 |
Initial seed to simulate a Multinomial LDA. |
community |
Total number of latent clusters. Must be greater than 2. |
variables |
Total number of variables. Must be greater than the number of communities. |
observations |
Total number of observations. Must be greater than 1. |
totalElements |
Total expected number of elements for each observation. Must be greater than 1. |
beta |
Vector of positive hyperparameters with dimension equal variables. |
gamma |
Scalar hyperparameters that must be positive. |
... |
other arguments may be useful. |
Generates a list with the simulated Theta and Phi matrix of parameters, Z latent matrix of communities and and Data matrix for the Multinomial LDA.
Pedro Albuquerque.
pedroa@unb.br
http://pedrounb.blogspot.com/
Denis Valle.
drvalle@ufl.edu
http://denisvalle.weebly.com/
Daijiang Li.
daijianglee@gmail.com
generateBernoulliLDA
, generateBinomialLDA
## Not run: #Generate fake data res<- generateMultinomialLDA.rlda(seed0=5587, community=4, variables=100, observations=1000, totalElements=40, beta=rep(1,100), gamma=0.01) #Show results res ## End(Not run)