mpmms | 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)
mpmms(lam.gs, record)
lam.gs |
The gibbs sampler |
record |
A specific record |
Returns a list of the MPMSS and the associated probabilities.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.