comp_dens_conv.normalmix function

comp_dens_conv.normalmix

comp_dens_conv.normalmix

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

## S3 method for class 'normalmix' 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
  • ...: other arguments (unused)

Returns

a k by n matrix

  • Maintainer: Peter Carbonetto
  • License: GPL (>= 3)
  • Last published: 2023-08-21