marsmanCorMHSampler: Fits a beta density to the the posterior samples based on an...

View source: R/pearson.R

marsmanCorMHSamplerR Documentation

Fits a beta density to the the posterior samples based on an independent Metropolis sampler, see Tierney (1994).

Description

Fits a beta density to the the posterior samples based on an independent Metropolis sampler, see Tierney (1994).

Usage

marsmanCorMHSampler(n, r, kappa = 1, nIters = 50000L)

Arguments

kappa

numeric > 0 that specifies the

Value

Returns a list with the beta parameters of a stretched beta distribution on (-1, 1) and the acceptance rate.


AlexanderLyNL/bstats documentation built on Sept. 11, 2023, 4:10 p.m.