Learn R Programming

ashr (version 1.0.12)

vcdf_post: vcdf_post

Description

vectorized version of cdf_post

Usage

vcdf_post(m, c, betahat, sebetahat, v)

Arguments

m
mixture distribution with k components
c
a numeric vector
betahat
an n vector of observations
sebetahat
an n vector of standard errors
v
degree of freedom of error distribution

Value

an n vector containing the cdf for beta_i at c

Examples

Run this code
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(ash.beta$fitted.g,seq(-5,5,length=1000),betahat,sebetahat,NULL)

Run the code above in your browser using DataLab