Learn R Programming

OVL.CI (version 0.1.1)

OVL_derivates_2: Numerical derivatives of the overlap functional (2-component mixture vs. 2-component mixture).

Description

Computes finite-difference approximations of the partial derivatives of the overlap coefficient with respect to the parameters when both groups are modeled as two-component Gaussian mixtures.

Usage

OVL_derivates_2(
  mu1_hat,
  mu2_hat,
  sigma1_hat,
  sigma2_hat,
  pi1_hat,
  pi2_hat,
  h,
  intersec,
  OVL_mix
)

Value

A list with components deriv1deriv10.

Arguments

mu1_hat

Numeric vector of length 2. Estimated means for the first mixture.

mu2_hat

Numeric vector of length 2. Estimated means for the second mixture.

sigma1_hat

Numeric vector of length 2. Estimated standard deviations for the first mixture.

sigma2_hat

Numeric vector of length 2. Estimated standard deviations for the second mixture.

pi1_hat

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.

pi2_hat

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.

h

Positive numeric scalar. Base step size for finite differences.

intersec

Numeric vector. Intersection points used as cutpoints.

OVL_mix

Function that evaluates the overlap-related expression at cutpoints.

Details

This function is intended for internal use (delta-method variance estimation).