log_comp_dens_conv.normalmix: log_comp_dens_conv.normalmix

View source: R/normalmix.R

log_comp_dens_conv.normalmixR Documentation

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


stephens999/ashr documentation built on May 16, 2024, 3:10 a.m.