Learn R Programming

ashr (version 0.9)

compdens_conv.normalmix: compdens_conv.normalmix

Description

returns 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

"compdens_conv"(m, x, s, v, FUN = "+")

Arguments

m
mixture distribution with k components
x
an n-vector at which density is to be evaluated
s
an n vector of standard errors
v
degree of freedom of error distribution
FUN
default is "+"

Value

a k by n matrix