50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

psychmeta (version 0.2.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 correlationa

Details

The average within-group correlation is estimated as:

ρxyWG=ρxyMix(dx2p(1p)+1)(dy2p(1p)+1)dx2dy2p2(1p)2

where ρxyWG is the average within-group correlation, ρxyMix is the overall mixture correlation, dx is the standardized mean difference between groups on X, dy 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