Learn R Programming

ashr (version 0.9)

compdens: Generic function of calculating the component densities of the mixture

Description

Generic function of calculating the component densities of the mixture

Usage

compdens(m, y, log = FALSE)

Arguments

m
mixture of k components generated by normalmix() or unimix() or igmix()
y
is an n-vector of location
log
whether to use log-scale on densities

Value

A k by n matrix of densities