a matrix with maxScale rows and mcmc$nrep columns with the MCMC draws of posterior probabilities of H0 for each scale
Ps
the posterior mean probabilities of H0 for each scale.
Arguments
y
The pooled sample of observations
a,b
Parameters of the msBP prior
group
Vector of size length(y) with 0 and 1 denoting the group membership.
priorH0
Prior gues for the probability of H0
mcmc
a list giving the MCMC parameters. It must include the
following integers: nb giving the number of burn-in iterations, nrep giving
the total number of iterations (including nb)., and ndisplay giving
the multiple of iterations to be displayed on screen while the MCMC is running (a message will be printed every ndisplay iterations).
maxScale
maximum scale of the binary trees.
plot.it
logical. If TRUE a plot of the posterior mean probability of H0 is produced
...
additional arguments to be passed.
References
Canale, A. and Dunson, D. B. (2016), "Multiscale Bernstein polynomials for densities", Statistica Sinica, 26(3), 1175-1195.
Canale, A. (2017), "msBP: An R Package to Perform Bayesian Nonparametric Inference Using Multiscale Bernstein Polynomials Mixtures". Journal of Statistical Software, 78(6), 1-19.