Learn R Programming

PAMA (version 0.1.1)

PAMA.B: This function implements Bayesian inference of PAMA model.

Description

This function implements Bayesian inference of PAMA model.

Usage

PAMA.B(datfile, nRe, iter = 1000)

Arguments

datfile

A matrix or dataframe. This is the data where our algorithm will work on. Each colomn denotes a ranker's ranking. The data should be in entity-based format.

nRe

A number. Number of relevant entities

iter

A number. Numner of iterations of MCMC

Value

List. It contains Bayesian posterior samples of all the parameters and log-likelihood.

  1. I.mat: posterior samples of I

  2. phi.mat: posterior samples of phi

  3. smlgamma.mat: posterior samples of gamma

  4. l.mat: posterior samples of log-likelihood

Examples

Run this code
# NOT RUN {
dat=t(PerMallows::rmm(10,1:20,0.5))
PAMA.B(dat,10,iter=10)
# }
# NOT RUN {
PAMA.B(dat,10,iter=1000)
# }

Run the code above in your browser using DataLab