ebbp_beta_mixture: Empirical Bayes for estimating Binomial probability

View source: R/ebbp_beta_mixture.R

ebbp_beta_mixtureR Documentation

Empirical Bayes for estimating Binomial probability

Description

Empirical Bayes for estimating Binomial probability

Usage

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
)

Arguments

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

Value

prior, posterior, likelihood


DongyueXie/smashrgen documentation built on Jan. 14, 2024, 5:30 a.m.