Description Usage Arguments References See Also Examples

View source: R/Bernoulli_Uniform.R

A mixture model prior with Bernoulli and uniform densities. See Scott and Berger (2010) for details.

1 | ```
Bernoulli_Uniform(ind,p)
``` |

`ind` |
an index set of variables in a model |

`p` |
the total number of covariates |

Scott, James G., and James O. Berger. "Bayes and empirical-Bayes multiplicity adjustment in the variable-selection problem." The Annals of Statistics 38.5 (2010): 2587-2619.

1 2 3 4 | ```
p = 5000
ind = 1:3
m = Bernoulli_Uniform(ind,p)
print(m)
``` |

```
[1] -32.27661
```

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.