Description Usage Arguments Author(s) See Also Examples
Convert rlda object to mcmc object from coda package
The rlda2mcmc
function create a list of two elements incluing the Theta matrix and Phi matrix in a mcmc class.
1 2 |
object |
a |
... |
other arguments may be useful. |
Pedro Albuquerque.
pedroa@unb.br
http://pedrounb.blogspot.com/
Denis Valle.
drvalle@ufl.edu
http://denisvalle.weebly.com/
Daijiang Li.
daijianglee@gmail.com
rlda.binomial
, rlda.bernoulli
,rlda.multinomial
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
#Load data
data(presence)
#Set seed
set.seed(9842)
#Hyperparameters for each prior distribution
gamma <-0.01
alpha0<-0.01
alpha1<-0.01
#Execute the LDA for the Binomial entry
res<-rlda.bernoulli(presence, 10, alpha0, alpha1, gamma,
5000, TRUE, FALSE)
#rlda2mcmc the results
listParams <- rlda2mcmc(res)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.