Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

log_comp_dens_conv.normalmix

log_comp_dens_conv.normalmix


Description

returns log-density of convolution of each component of a normal mixture with N(0,s^2) or s*t(v) at x. Note that convolution of two normals is normal, so it works that way

Usage

## S3 method for class 'normalmix'
log_comp_dens_conv(m, data)

Arguments

m

mixture distribution with k components

data

a list with components x and s to be interpreted as a normally-distributed observation and its standard error

Value

a k by n matrix


ashr

Methods for Adaptive Shrinkage, using Empirical Bayes

v2.2-47
GPL (>= 3)
Authors
Matthew Stephens [aut], Peter Carbonetto [aut, cre], Chaoxing Dai [ctb], David Gerard [aut], Mengyin Lu [aut], Lei Sun [aut], Jason Willwerscheid [aut], Nan Xiao [aut], Mazon Zeng [ctb]
Initial release
2020-02-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.