Learn R Programming

blink (version 1.1.0)

mpmms: Function to compute a record's MPMMS based on a Gibbs sampler. Note: It returns a list of the MPMMS ($mpmms) and its probability ($prob)

Description

Function to compute a record's MPMMS based on a Gibbs sampler. Note: It returns a list of the MPMMS ($mpmms) and its probability ($prob)

Usage

mpmms(lam.gs, record)

Arguments

lam.gs

The gibbs sampler

record

A specific record

Value

Returns a list of the MPMSS and the associated probabilities.

Examples

Run this code
# NOT RUN {
lam.gs <- matrix(c(1,1,2,2,3,3,5,6,4,3,4,5,3,2,4,1,2,3,4,2),ncol=20,  nrow=4)
record <- c(1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3)
mpmms(lam.gs=lam.gs, record=record)
# }

Run the code above in your browser using DataLab