comp_postsd function

comp_postsd

comp_postsd

output posterior sd for beta for each component of prior mixture m,given data

comp_postsd(m, data)

Arguments

  • m: mixture distribution with k components
  • data: details depend on the model

Examples

beta = rnorm(100,0,1) betahat= beta+rnorm(100,0,1) ash.beta = ash(betahat,1,mixcompdist="normal") data= set_data(betahat,rep(1,100)) comp_postmean(get_fitted_g(ash.beta),data) comp_postsd(get_fitted_g(ash.beta),data) comp_postprob(get_fitted_g(ash.beta),data)
  • Maintainer: Peter Carbonetto
  • License: GPL (>= 3)
  • Last published: 2023-08-21