Learn R Programming

psychmeta (version 2.6.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)

Value

A vector of two-group mixture correlations

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.

Details

The average within-group correlation is estimated as:

_xy_WG=_xy_Mix(d_x^2p(1-p)+1)(d_y^2p(1-p)+1)-d_x^2d_y^2p^2(1-p)^2r_wg = r_mix * sqrt((dx^2 * p * (1 - p) + 1) * (dy^2 * p * (1 - p) + 1)) - sqrt(dx^2 * dy^2 * p^2 * (1 - p)^2)

where _xy_WGr_wg is the average within-group correlation, _xy_Mixr_mix is the overall mixture correlation, d_xdx is the standardized mean difference between groups on X, d_ydy 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
mix_r_2group(rxy = .375, dx = 1, dy = 1, p = .5)

Run the code above in your browser using DataLab