Last chance! 50% off unlimited learning
Sale ends in
Uses Empirical Bayes to fit the model
ash_pois(y, scale = 1, link = c("identity", "log"), ...)
vector of Poisson observations.
vector of scale factors for Poisson observations: the model is
string, either "identity" or "log", indicating the link function.
other parameters to be passed to ash
The model is fit in two stages: i) estimate
beta = c(rep(0,50),rexp(50))
y = rpois(100,beta) # simulate Poisson observations
y.ash = ash_pois(y,scale=1)
Run the code above in your browser using DataLab