Learn R Programming

OVL.CI (version 0.1.1)

OVL_mix: Computes the overlap coefficient (OVL) between two cumulative distribution functions corresponding to finite mixtures of two normal distributions.

Description

Computes the overlap coefficient (OVL) between two cumulative distribution functions corresponding to finite mixtures of two normal distributions.

Usage

OVL_mix(mu1, mu2, sigma1, sigma2, pi_H, pi_D, x)

Value

A numeric value corresponding to the OVL between the two mixture distributions.

Arguments

mu1

Numeric vector of length 2 containing the means of the first mixture.

mu2

Numeric vector of length 2 containing the means of the second mixture.

sigma1

Numeric vector of length 2 containing the standard deviations of the first mixture.

sigma2

Numeric vector of length 2 containing the standard deviations of the second mixture.

pi_H

Either a numeric scalar in [0,1] giving the mixing proportion of the first component in the first mixture, or a numeric vector of length 2 with elements summing to 1.

pi_D

Either a numeric scalar in [0,1] giving the mixing proportion of the first component in the second mixture, or a numeric vector of length 2 with elements summing to 1.

x

Numeric vector of intersection points between the two mixture densities.

Details

Mixing proportions equal to 0 or 1 are allowed, in which case the corresponding mixture reduces to a single normal distribution.