vcdf_post: vcdf_post

View source: R/mix.R

vcdf_postR Documentation

vcdf_post

Description

vectorized version of cdf_post

Usage

vcdf_post(m, c, data)

Arguments

m

mixture distribution with k components

c

a numeric vector

data

depends on context

Value

an n vector containing the cdf for beta_i at c

Examples

beta = rnorm(100,0,1)
betahat= beta+rnorm(100,0,1)
sebetahat=rep(1,100)
ash.beta = ash(betahat,1,mixcompdist="normal")
c = vcdf_post(get_fitted_g(ash.beta),seq(-5,5,length=1000),data = set_data(betahat,sebetahat))

ashr documentation built on Aug. 22, 2023, 1:07 a.m.