mpmms {blink}R Documentation

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

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)

[Package blink version 1.1.0 Index]