rlda2mcmc: Conversion between rlda to mcmc object from coda package

Description Usage Arguments Author(s) See Also Examples

Description

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.

Usage

1
2
  ## S3 method for class 'rlda'
rlda2mcmc(object, ...)

Arguments

object

a rlda object created by rlda.binomial, rlda.bernoulli or rlda.multinomial function.

...

other arguments may be useful.

Author(s)

See Also

rlda.binomial, rlda.bernoulli,rlda.multinomial

Examples

 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)

Rlda documentation built on May 1, 2019, 7:26 p.m.

Related to rlda2mcmc in Rlda...