rho_M1Y {SimCorrMix}R Documentation

Approximate Correlation between Continuous Mixture Variable M1 and Random Variable Y

Description

This function approximates the expected correlation between a continuous mixture variables M1M1 and another random variable YY based on the mixing proportions, component means, and component standard deviations of M1M1 and correlations between components of M1M1 and YY. The equations can be found in the Expected Cumulants and Correlations for Continuous Mixture Variables vignette. This function can be used to see what combination of correlations between components of M1M1 and YY gives a desired correlation between M1M1 and YY.

Usage

rho_M1Y(mix_pis = NULL, mix_mus = NULL, mix_sigmas = NULL, p_M1Y = NULL)

Arguments

mix_pis

a vector of mixing probabilities that sum to 1 for component distributions of M1M1

mix_mus

a vector of means for component distributions of M1M1

mix_sigmas

a vector of standard deviations for component distributions of M1M1

p_M1Y

a vector of correlations between the components of M1M1 and YY; i.e., p_M1Y[1] is the correlation between the 1st component of M1M1 and YY

Value

the expected correlation between M1 and Y

References

Please see references for rho_M1M2.

See Also

rho_M1Y

Examples

# M1 is mixture of N(-2, 1) and N(2, 1); pairwise correlation set to 0.35
rho_M1Y(mix_pis = c(0.4, 0.6), mix_mus = c(-2, 2), mix_sigmas = c(1, 1),
  p_M1Y = c(0.35, 0.35))


[Package SimCorrMix version 0.1.1 Index]