Learn R Programming

Rlda (version 0.2.6)

summary: Provide summary information.

Description

Takes a rlda object produced by rlda.binomial, rlda.bernoulli or rlda.multinomial and produces a summary from it.

Usage

# S3 method for rlda
summary(object, burnin=0.1, quantile = 0.95, silent=FALSE, ...)

Arguments

object

a rlda object as produced by rlda.binomial, rlda.bernoulli or rlda.multinomial.

burnin

a percentual of burn-in observations must be a number between 0 and 1. The default value is burnin=0.1

quantile

a quantile for the credible interval. The default value is quantile=0.95

silent

a logical value specifying if the number of clusters, variables and gibbs interations must be printed. The default value is silent=FALSE

...

other arguments may be useful.

Details

Summarizes the Gibbs Samping results and arguments.

See Also

rlda.binomial, rlda.bernoulli,rlda.multinomial

Examples

Run this code
# 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)
#Summary method
Theta<-summary(res)$Theta
# }

Run the code above in your browser using DataLab