Learn R Programming

psychmeta (version 2.3.4)

mix_r_2group: Estimate the mixture correlation for two groups

Description

Estimate the mixture correlation for two groups

Usage

mix_r_2group(rxy, dx, dy, p = 0.5)

Arguments

rxy

Average within-group correlation

dx

Standardized mean difference between groups on X.

dy

Standardized mean difference between groups on Y.

p

Proportion of cases in one of the two groups.

Value

A vector of two-group mixture correlations

Details

The average within-group correlation is estimated as:

$$\rho_{xy_{WG}}=\rho_{xy_{Mix}}\sqrt{\left(d_{x}^{2}p(1-p)+1\right)\left(d_{y}^{2}p(1-p)+1\right)}-\sqrt{d_{x}^{2}d_{y}^{2}p^{2}(1-p)^{2}}$$

where \(\rho_{xy_{WG}}\) is the average within-group correlation, \(\rho_{xy_{Mix}}\) is the overall mixture correlation, \(d_{x}\) is the standardized mean difference between groups on X, \(d_{y}\) is the standardized mean difference between groups on Y, and p is the proportion of cases in one of the two groups.

Examples

Run this code
# NOT RUN {
mix_r_2group(rxy = .375, dx = 1, dy = 1, p = .5)
# }

Run the code above in your browser using DataLab