View source: R/ebbp_beta_mixture.R
ebbp_beta_mixture | R Documentation |
Empirical Bayes for estimating Binomial probability
ebbp_beta_mixture(
x,
nx,
shape = NULL,
point_mass = TRUE,
nullweight = 10,
weight = rep(1, length(x)),
g_init = NULL,
fix_g = FALSE,
control = NULL
)
x: |
a vector of the number of successes |
nx: |
a vector of the number of trials. |
shape: |
parameter of mixture Beta component, Beta(shape,shape). |
point_mass: |
whether include delta(1/2) in the mixture component. |
nullweight: |
extra amount of weight on the first mixing proportion. |
weight: |
a vector of weights |
control: |
controls of mixSQP |
prior, posterior, likelihood
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.