mbb: Moving Block Bootstrap

View source: R/mbb.R

mbbR Documentation

Moving Block Bootstrap

Description

This function produces a set of marginal likelihood estimates for moving block bootstrap observations. Its main use is for calculating the standard error associated to the thermodynamic integration and stepping-stone sampling estimates.

Usage

mbb(x, bl, nboot, temp = NULL)

Arguments

x

A data frame with the folloging columns: logL and invTemp, which contain the log-likelihood and inverse temperature values, respectively.

bl

Block lenghts.

nboot

Number of bootstrap observations to be analysed.

temp

It indicates the temperatures to be used in the analysis, for instance, c(1,3,K) considers the temperatures at those positions, where K is the number of temperatures. In this case, the temperatures must be sorted in an increasing order. Note that samples from the prior and posterior must be included in the process. NULL stands for all the temperatures in x.

Details

For a block length equal to 1 (bl=1) the original bootstrap method for i.i.d. data is recovered. A block lenght greater than one allows to take into account a potential autocorrelation within the Markov chains. mbb is being designed to take also into account potential cross-correlation between the Markov chains due to swaps in parallel tempering sampling. See more details in Maturana R. et al. (2018)

Value

A list containing the following components:

Zs

Marginal likelihood estimates via ti and ss.

se

Standard deviation of the marginal likelihood estimates calculated for the bootstrap observations.

res

Marginal likelihood estimate differences between the ones calculated for the bootstrap observations and the original dataset x.

Author(s)

Patricio Maturana Russel p.russel@auckland.ac.nz

References

Kunsch, H. R. 1989. The Jackknife and the Bootstrap for General Stationary Observations. The Annals of Statistics 17(3), 1217–1241.

Maturana Russel, P., Meyer, R., Veitch, J., and Christensen, N. 2018. The stepping-stone algorithm for calculating the evidence of gravitational wave models. arXiv preprint arXiv:1810.04488

Examples

## Not run: 
data(ligoVirgoSim)
R = mbb(ligoVirgoSim, bl = 10, nboot = 20, temp = NULL)
R$se; # standard error of the marginal likelihood estimates

## End(Not run)

pmat747/powModSel documentation built on Aug. 1, 2022, 1:07 p.m.