comp_cdf_post function

comp_cdf_post

comp_cdf_post

evaluate cdf of posterior distribution of beta at c. m is the prior on beta, a mixture; c is location of evaluation assumption is betahat | beta ~ t_v(beta,sebetahat)

comp_cdf_post(m, c, data)

Arguments

  • m: mixture distribution with k components
  • c: a scalar
  • data: details depend on model

Returns

a k by n matrix

Examples

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