Description Usage Arguments Value Examples

The main function `bcdd_mcmc`

in this package can be used to deconvolve
a density with a unimodal and symmetric shape. The method is coined the name
Constrained Bayes and is essentially a nonparametric approach using Bayesian
hierarchical models. The speed is bumped by utilizing functions written in Rcpp.

1 2 |

`w` |
A vector containing the proxy variables. |

`sd_u` |
A vector containing the standard deviation of error, if the error is homoscedastic, then it should be a scalar. |

`n.burnin` |
A number (default 1000) specifies the number of burning steps. |

`n.MCMC` |
A number (default 5000) specifies the number of total MCMC steps. |

`hpar` |
A list containing the hyperparameters in the algorithm, the default values are chosen if left empty. m is the concentration parameter and K is the number of categories of Dirichlet distribution prior for p. Xi_1, Xi_2 are the shape and rate parameters of the Gamma prior for beta. lambda is the rate parameter of the exponential prior for alpha. shape.lambda is one parameter in the proposal distribution for the MH step of alpha. tt corresponds to the lower bound that is prespecified for alpha. |

A list containing the expected posterior density of the latent true variable (y) evaluated on a grid (x) chosen automatically in the function.

1 2 3 4 5 6 7 8 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.