Perfect Sampling

The algorithm provided in this package generates perfect sample for unimodal or multimodal posteriors. Read Once Coupling From The Past, with Metropolis-Multishift is used to generate a perfect sample for a given posterior density based on the two extreme starting paths, minimum and maximum of the most interest range of the posterior. It uses the monotone random operation of multishift coupler which allows to sandwich all of the state space in one point. It means both Markov Chains starting from the maximum and minimum will be coalesced. The generated sample is independent from the starting points. It is useful for mixture distributions too. The output of this function is a real value as an exact draw from the posterior distribution.


ROCFTP.MMS

The goal of ROCFTP.MMS is to generate perfect sample from a given posterior. It takes a posterior, and generates two Markov chains by Metropolis with a multishift proposal. This proposal is monotone and forces these two Markov chains started from the two extreme points of the most interest range to be coalesced. This mechanism is used in ROCFTP to generate a perfect sample.

Installation

You can install the released version of ROCFTP.MMS from CRAN with:

install.packages("ROCFTP.MMS")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("nabipoor/ROCFTP.MMS")

Example

Basic examples provided in the Help document.

Documentation

Full PDF manual: [ROCFTP.MMS_1.0.1_manual.pdf]

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("ROCFTP.MMS")

1.0.1 by Majid Nabipoor, 7 months ago


https://github.com/nabipoor/ROCFTP.MMS


Browse source code at https://github.com/cran/ROCFTP.MMS


Authors: Majid Nabipoor [aut, cre, cph] , Duncan Murdoch [aut]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports stats, vctrs

Suggests knitr, rmarkdown, testthat


See at CRAN