approx_normmix: Approximate the masses of bivariate normal mixture components

Description Usage Arguments Value Author(s) See Also Examples

View source: R/approximations.R

Description

Calculates the mass of the density of each component of a normal mixture over a given window.

For examples see

http://faculty.missouri.edu/~micheasa/sppmix/sppmix_all_examples.html#approx_normmix

Usage

1
approx_normmix(mix, xlim = c(0, 1), ylim = c(0, 1))

Arguments

mix

An object of class normmix

xlim, ylim

Vectors defining the x-y integration limits. A mixture component mass is estimated within this window.

Value

A numerical vector with elements corresponding to the mass of each component within the window. These values are required when we use truncation over an observation window in order to handle edge effects.

Author(s)

Jiaxun Chen, Yuchen Wang

See Also

normmix

Examples

1
2
3
truemix = normmix(ps = c(.3, .7), mus = list(c(0.2, 0.2),
 c(.8, .8)), sigmas =list(.01*diag(2),.01*diag(2)))
approx_normmix(truemix,xlim= c(-2, 2), ylim = c(-2, 2))

sppmix documentation built on Jan. 13, 2021, 10:04 p.m.